Function at 0x41ad20
Capabilities:
Connect socket

Disassembly:
sub esp, 0xac
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb4]
push ebp
mov ebp, dword [esp + 0xb4]
push esi
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [ecx], 0xffffffff
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x24], edx
mov dword [edx], esi
lea edx, [esp + 0x28]
push edx
push eax
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
call fcn.0041ac40
add esp, 0x10
test eax, eax
je 0x41ad98
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044ba98
add esp, 0xac
ret
push ebx
lea edi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
lea esi, [esp + 0x38]
call fcn.0041a920
test eax, eax
jne 0x41ade5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0040f200
push eax
mov eax, dword [esp + 0x1c]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00419ed0
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.0041abf0
add esp, 0x20
jmp 0x41b029
lea eax, [ebp + 0x40]
mov esi, edi
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x14]
push str.__Trying__s..._n
push esi
call fcn.00419e40
push ebp
call fcn.0041a8c0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x41ae24
mov edx, ebx
mov edi, ebp
call fcn.0041aac0
push ebx
call fcn.0041ab20
add esp, 4
cmp dword [esi + 0x408], 0
je 0x41ae43
mov edi, dword [esp + 0x10]
mov esi, ebx
call fcn.0041a310
mov esi, edi
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x41ae77
mov edx, dword [esi + 0x170]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x41ae6f
mov dword [esp + 0x18], 1
jmp 0x41ae77
test eax, eax
jne 0x41afbb
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.0041a480
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41ae9d
push ebx
push ebp
call fcn.0041abf0
add esp, 8
mov eax, edi
jmp 0x41b02b
push 1
push ebx
call fcn.0042c860
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x41af53
cmp dword [ebp + 0x74], 1
jne 0x41af53
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41aedf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
call fcn.00420170
cmp dword [ebp + 0x20c], 1
mov dword [ebp + 0x204], eax
mov dword [ebp + 0x208], edx
jle 0x41af09
mov eax, dword [ebp + 0x210]
push eax
push esi
call fcn.0041e4a0
add esp, 8
cmp edi, 0xffffffff
jne 0x41afcc
mov eax, dword [esp + 0x14]
cmp eax, 0xb
je 0x41afa2
cmp eax, 0x2732
jle 0x41af2d
cmp eax, 0x2734
jle 0x41afa2
push eax
push ebp
call fcn.0040f200
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00419ed0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esi + 0x858c], ecx
jmp 0x41af5b
xor edi, edi
cmp dword [esp + 0x18], edi
jne 0x41af78
push ebx
lea esi, [esp + 0x18]
call fcn.0041a850
add esp, 4
test edi, edi
jne 0x41afe2
test eax, eax
je 0x41affb
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push str.connected_n
push esi
mov dword [eax], 1
call fcn.00419e40
push ebx
push ebp
call fcn.0041a960
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [ecx], ebx
jmp 0x41b029
mov eax, dword [esp + 0xc8]
push ebp
mov edi, ebx
call fcn.0041a410
mov edi, eax
add esp, 4
cmp edi, 3
jne 0x41afcc
push ebx
push ebp
call fcn.0041abf0
add esp, 8
mov eax, 0x2a
jmp 0x41b02b
cmp edi, 1
jne 0x41af5b
cmp dword [esi + 0x540], 2
jne 0x41af5b
mov edx, dword [esp + 0x20]
mov dword [edx], ebx
jmp 0x41b029
cmp edi, 1
jne 0x41affb
mov edx, dword [esp + 0x10]
push str.Timeout_n
push edx
call fcn.00419e40
add esp, 8
jmp 0x41b01f
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push eax
push ebp
mov dword [esi + 0x858c], eax
call fcn.0040f200
push eax
push 0x46a698
push esi
call fcn.00419e40
add esp, 0x14
push ebx
push ebp
call fcn.0041abf0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xb8]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044ba98
add esp, 0xac
ret