Function at 0x539f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x78f898
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x250], ebx
je 0x53a230
lea ecx, [esp + 0x28]
mov byte [esi + 0x259], bl
call fcn.00406ed8
xor eax, eax
lea edi, [esi + 0x354]
lea ebp, [esi + 0x358]
mov dword [esp + 0x80], ebx
mov dword [edi], ebx
mov word [ebp], ax
mov dword [esi + 0x35c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [esi + 0x350], eax
lea eax, [esi + 0x21c]
push eax
mov edx, dword [esi + 0x250]
lea eax, [esi + 0x220]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [esp + 0x2a]
push eax
lea eax, [esi + 0x383]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x35c]
push eax
movzx eax, word [esi + 0x396]
push ebp
push edi
push eax
mov ecx, esi
mov byte [esp + 0x50], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
call fcn.0052bd50
movzx ecx, al
mov eax, dword [edx]
push ecx
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [esi + 0x21c]
cmp ecx, ebx
jne 0x53a1fd
cmp al, bl
je 0x53a1c4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push eax
mov eax, dword [esi + 0x35c]
push ecx
movzx ecx, word [ebp]
lea edx, [esi + 0x260]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00539900
test al, al
je 0x53a135
cmp dword [esi + 0x278], ebx
je 0x53a206
mov eax, dword [esi + 0x42c]
mov byte [esi + 0x25a], 1
cmp eax, ebx
je 0x53a0de
mov ecx, dword [esi + 0x27c]
mov dword [ecx + 0x42c], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
je 0x53a206
cmp byte [esp + 0x16], bl
jne 0x53a206
movzx ecx, byte [esi + 0x3d0]
mov edx, dword [esi + 0x27c]
mov edi, dword [edx]
push ecx
push ebx
push 1
push 1
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
call fcn.00404ab1
mov ecx, eax
call fcn.00402658
mov ecx, dword [esi + 0x27c]
push eax
mov eax, dword [edi + 0xec]
call eax
jmp 0x53a206
mov ecx, dword [esi + 4]
mov byte [esi + 0x399], 1
mov edx, dword [ecx + 4]
lea ecx, [edx + esi + 4]
call fcn.00519740
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xe8]
push edi
mov ecx, esi
call edx
push edi
mov ecx, esi
call fcn.0052e8f0
push str.Failed_to_connect__terminating_the_socket__n
lea ecx, [esp + 0x60]
call fcn.004062df
push str.InitiateConnect
lea ecx, [esp + 0x44]
mov byte [esp + 0x84], 1
call fcn.004062df
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 4]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x5c]
lea ecx, [ecx + esi + 4]
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x88], 2
call edx
lea ecx, [esp + 0x40]
call fcn.00402ed7
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], bl
call fcn.00402ed7
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov ecx, dword [esi + 0x250]
cmp ecx, ebx
je 0x53a1e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
push esi
call edx
lea ecx, [esp + 0x28]
call fcn.00402f18
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
push ecx
lea ecx, [esi + 0x30]
call fcn.00520c80
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x53a217
push eax
call fcn.00564155
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00564155
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret