Function at 0x45cc30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcc78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x644a10]
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.00451d20
test eax, eax
jne 0x45cc99
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 0x45cc9c
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.0045bc90
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.0045c770
cmp dword [ebx + 0x4c], 0
mov dword [ebp + 8], 1
je 0x45cd5e
mov eax, dword [edi + 0x88]
push 1
push eax
call fcn.00438d50
add esp, 8
test eax, eax
je 0x45cd1e
push 0x80004005
call fcn.00423210
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 0x45cd53
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.0043acb0
add esp, 0x10
jmp 0x45cdf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45cdf9
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 0x45cdf3
mov ecx, dword [edi + 0x88]
push 1
push ecx
call fcn.00438d50
add esp, 8
test eax, eax
je 0x45cda4
push 0x80004005
call fcn.00423210
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 0x45cd53
push edi
mov ecx, ebx
mov dword [edi + 0x48], 1
call fcn.0045ab70
cmp eax, 2
je 0x45cde2
push esi
push edi
mov ecx, ebx
call fcn.0045cb40
mov dword [ebp + 8], 0
jmp 0x45cdf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45cdf9
mov eax, 0x4c7
jmp 0x45cdf9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x45ce32
cmp dword [ebp + 8], 0
je 0x45ce32
push 0
push 0
push 0
push edi
mov ecx, ebx
call fcn.0045c690
push esi
lea ecx, [ebx + 0xb4]
call fcn.0046c920
test eax, eax
jne 0x45ce32
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