Function at 0x46fe30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0d28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x10]
lea esi, [ebx + 0x98]
push eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x10], 0
call fcn.00465660
test eax, eax
jne 0x46fe99
mov edi, dword [esi + 0x10]
mov edx, dword [esi]
lea ecx, [edi + 0x38]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [eax + 0x14], esi
lea ecx, [eax + 0x38]
mov esi, eax
mov dword [eax + 0x24], edi
mov dword [eax + 0x20], ecx
mov dword [ebp - 0x10], esi
jmp 0x46fe9c
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0x18]
push eax
push ecx
mov ecx, ebx
mov dword [esi + 0x1c], edx
call fcn.0046efa0
mov edi, eax
lea eax, [edi + 0x54]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edi
push edx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0046f970
cmp dword [ebx + 0x4c], 0
mov dword [ebp + 8], 1
je 0x46ff5e
mov eax, dword [edi + 0x88]
push 1
push eax
call fcn.0044c5e0
add esp, 8
test eax, eax
je 0x46ff1e
push 0x80004005
call fcn.00436780
mov ecx, dword [ebx + 0x50]
mov edx, dword [edi + 0x88]
push 0
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x46ff53
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0x88]
mov edx, dword [ebx + 0x40]
push esi
push eax
push ecx
push edx
call fcn.0044e570
add esp, 0x10
jmp 0x46fff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46fff9
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp word [ecx], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
mov eax, dword [edi + 0x88]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x46fff3
mov ecx, dword [edi + 0x88]
push 1
push ecx
call fcn.0044c5e0
add esp, 8
test eax, eax
je 0x46ffa4
push 0x80004005
call fcn.00436780
mov edx, dword [ebx + 0x50]
mov eax, dword [edi + 0x88]
push 0
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x46ff53
push edi
mov ecx, ebx
mov dword [edi + 0x48], 1
call fcn.0046df40
cmp eax, 2
je 0x46ffe2
push esi
push edi
mov ecx, ebx
call fcn.0046fd40
mov dword [ebp + 8], 0
jmp 0x46fff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46fff9
mov eax, 0x4c7
jmp 0x46fff9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x470032
cmp dword [ebp + 8], 0
je 0x470032
push 0
push 0
push 0
push edi
mov ecx, ebx
call fcn.0046f890
push esi
lea ecx, [ebx + 0xb4]
call fcn.0043aba0
test eax, eax
jne 0x470032
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14