Function at 0x410d60
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5279f0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [ebx]
push esi
mov esi, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [edx], 0xffffffff
mov dword [esi], ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0
call fcn.004105c0
add esp, 0x10
test eax, eax
jne 0x410fb7
movzx eax, word [esp + 0x30]
lea esi, [ebx + 0x9e]
sub eax, 2
jne 0x41105a
push 0x2e
push esi
lea eax, [esp + 0x3c]
push eax
push 2
call fcn.00415200
add esp, 0x10
test eax, eax
je 0x41105a
push edi
push dword [esp + 0x36]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebx + 0xcc], eax
lea eax, [ebx + 0x40]
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s..._n
push ebp
movsw word es:[edi], word [esi]
call fcn.0040fba0
push ebx
call fcn.004104f0
mov esi, dword [esp + 0x24]
add esp, 0x10
cmp dword [ebp + 0x34c], 0
je 0x410e4b
push esi
push ebx
call fcn.004110b0
add esp, 8
push esi
call fcn.00410550
mov eax, dword [ebp + 0x1a4]
add esp, 4
test eax, eax
je 0x410e99
push 0
push esi
push dword [ebp + 0x1a8]
call eax
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
cmp edi, 2
jne 0x410e81
mov dword [esp + 0x10], 1
jmp 0x410e9b
test edi, edi
je 0x410e9b
push esi
push ebx
call fcn.00410060
add esp, 8
mov eax, 0x2a
jmp 0x410fb6
xor edi, edi
push dword [esp + 0x24]
push esi
push ebx
call fcn.00410930
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x410ec4
push esi
push ebx
call fcn.00410060
mov eax, dword [esp + 0x1c]
add esp, 8
jmp 0x410fb6
push 1
push esi
call fcn.00424b90
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x410fcf
cmp dword [ebx + 0x74], 1
jne 0x410fcf
push dword [esp + 0x30]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x410f0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esp + 0x18], edi
call fcn.00413840
cmp dword [ebx + 0x230], 1
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], edx
jle 0x410f33
push dword [ebx + 0x234]
push ebp
call fcn.00414500
add esp, 8
cmp dword [esp + 0x10], 0xffffffff
jne 0x410f9c
cmp edi, 0xb
je 0x410f75
cmp edi, 0x2732
jle 0x410f4f
cmp edi, 0x2734
jle 0x410f75
push edi
push ebx
call fcn.00413d60
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.0040fad0
mov dword [ebp + 0x85ac], edi
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x410fd5
push dword [esp + 0xc4]
push esi
push ebx
call fcn.00411260
mov edi, eax
add esp, 0xc
cmp edi, 3
jne 0x410fa0
push esi
push ebx
call fcn.00410060
add esp, 8
lea eax, [edi + 0x27]
jmp 0x410fb6
mov edi, dword [esp + 0x10]
cmp edi, 1
jne 0x410fd5
cmp dword [ebp + 0x560], 2
jne 0x410fd5
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.004c22ab
add esp, 0xa8
ret
xor edi, edi
test eax, eax
jne 0x410feb
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004111f0
add esp, 8
test edi, edi
jne 0x41100c
test eax, eax
je 0x41102b
mov eax, dword [esp + 0x20]
push str.connected_n
push ebp
mov dword [eax], 1
call fcn.0040fba0
push esi
push ebx
call fcn.00410740
add esp, 0x10
jmp 0x410fae
cmp edi, 1
jne 0x41102b
push str.Timeout_n
push ebp
call fcn.0040fba0
add esp, 8
push esi
push ebx
call fcn.00410060
add esp, 8
jmp 0x410fb4
mov eax, dword [esp + 0x18]
push eax
push ebx
mov dword [ebp + 0x85ac], eax
call fcn.00413d60
push eax
push 0x4d9584
push ebp
call fcn.0040fba0
add esp, 0x14
push esi
push ebx
call fcn.00410060
add esp, 8
jmp 0x410fb4
mov byte [esi], 0
mov dword [ebx + 0xcc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00413d60
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0040fad0
push dword [esp + 0x28]
push ebx
call fcn.00410060
mov ecx, dword [esp + 0xd0]
add esp, 0x20
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c22ab
add esp, 0xa8
ret