Function at 0x450480
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push edi
push eax
call fcn.0044d480
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push edx
call ebx
mov eax, dword [esi + 4]
or edi, 0xffffffff
mov dword [eax + 4], edi
cmp dword [esi + 0x20], 0
mov dword [ebp - 4], 0
je 0x45061d
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
cmp eax, edi
je 0x4505bb
push eax
call fcn.0044d460
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.0044d560
mov ecx, dword [esi + 4]
test eax, eax
je 0x4505a3
cmp dword [ecx + 0x38], 0
je 0x45054c
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x403
push edx
call fcn.0044ce30
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x45054c
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
call fcn.0044d480
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call ebx
mov edx, dword [esi + 4]
mov dword [edx + 4], edi
jmp 0x4505bb
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push edx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 4]
push eax
call fcn.0044d1d0
test eax, eax
je 0x45052f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0044ce20
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x4505ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4505ce
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.0044d480
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
call ebx
mov eax, dword [esi + 4]
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x1c]
mov dword [esi + 0x20], edx
test edx, edx
jne 0x4504c0
jmp 0x45061d
mov ebx, dword [esi + 8]
mov dword [esi + 8], 2
cmp ebx, 2
je 0x450616
cmp dword [esi + 4], 0
je 0x450616
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 4]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], ebx
call fcn.0044eb90
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x20]
test eax, eax
je 0x45062a
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x20], ecx
cmp dword [esi + 0x20], 0
jne 0x450642
mov edx, dword [esi + 0x1c]
push edx
call dword [0x4b0198]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
cmp dword [eax + 4], edi
pop edi
pop esi
pop ebx
je 0x450659
cmp dword [ebp - 4], 0
je 0x450659
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret