Function at 0x423e30
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa4
mov eax, dword [0x481b08]
xor eax, esp
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
push edi
mov edi, dword [ebx]
xor ebp, ebp
mov dword [edx], 0xffffffff
mov dword [eax], ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
push ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], edi
call fcn.00423540
add esp, 0x10
test eax, eax
je 0x423ead
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00449824
add esp, 0xa4
ret
push esi
lea eax, [ebx + 0xcc]
push eax
lea esi, [ebx + 0x9e]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00423da0
add esp, 0xc
test eax, eax
jne 0x423efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00415c50
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.00422760
push dword [esp + 0x34]
push ebx
call fcn.00422e90
add esp, 0x20
jmp 0x424082
lea eax, [ebx + 0x40]
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x14]
push str.__Trying__s..._n
push edi
call fcn.00422830
push ebx
call fcn.004233e0
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [edi + 0x34c], ebp
je 0x423f38
push esi
push ebx
call fcn.00424190
add esp, 8
push esi
call fcn.00423440
add esp, 4
cmp dword [edi + 0x450], ebp
je 0x423f53
push esi
push edi
call fcn.004240a0
add esp, 8
mov eax, dword [edi + 0x1a8]
test eax, eax
je 0x423f7a
push 0
push esi
push dword [edi + 0x1ac]
call eax
mov ebp, eax
add esp, 0xc
cmp ebp, 2
jne 0x423fab
mov dword [esp + 0x18], 1
push dword [esp + 0x20]
push esi
push ebx
call fcn.004238d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x423fc3
push esi
push ebx
call fcn.00422e90
mov eax, dword [esp + 0x18]
xor ecx, ecx
add esp, 8
cmp eax, 1
cmove eax, ecx
jmp 0x424084
test ebp, ebp
je 0x423f7a
push esi
push ebx
call fcn.00422e90
add esp, 8
mov eax, 0x2a
jmp 0x424084
push 1
push esi
call fcn.00442bd0
add esp, 8
call fcn.00419e60
cmp dword [ebx + 0x290], 1
mov dword [ebx + 0x288], eax
mov dword [ebx + 0x28c], edx
jle 0x423ff7
push dword [ebx + 0x294]
push edi
call fcn.004164b0
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x42407c
cmp dword [ebx + 0x74], 1
jne 0x42407c
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x424029
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x20], 0x17
sete cl
mov dword [ebx + 0x240], ecx
cmp eax, 0xffffffff
jne 0x42407c
cmp ebp, 0xb
je 0x42407c
cmp ebp, 0x2732
jle 0x424053
cmp ebp, 0x2734
jle 0x42407c
push ebp
push ebx
call fcn.00415c50
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.00422760
push esi
push ebx
mov dword [edi + 0x85d4], ebp
call fcn.00422e90
add esp, 0x20
jmp 0x424082
mov eax, dword [esp + 0x14]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449824
add esp, 0xa4
ret