Function at 0x41c980
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe0
mov eax, dword [0x4ac0d8]
xor eax, esp
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push edi
mov dword [esp + 0x10], ecx
mov ebp, dword [ebx]
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13], 0
push ecx
push eax
push ebx
call fcn.0041c0a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41c9f1
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.00449a41
add esp, 0xe0
ret
movzx eax, word [esp + 0x38]
push esi
sub eax, 2
jne 0x41cbfe
push 0x2e
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x48]
push eax
push 2
call fcn.0042b8d0
add esp, 0x10
test eax, eax
je 0x41cbfe
push dword [esp + 0x3e]
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [esp + 0xbc]
push eax
push str.__Trying__s..._n
push ebp
call fcn.0041ae70
add esp, 0xc
cmp dword [esp + 0x2c], 2
jne 0x41ca53
cmp dword [esp + 0x30], 1
jne 0x41ca53
mov al, 1
jmp 0x41ca55
xor al, al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], al
test al, al
je 0x41ca74
cmp byte [ebp + 0x50e], 0
je 0x41ca74
push esi
push ebx
call fcn.0041c170
add esp, 8
push esi
call fcn.0041c000
add esp, 4
cmp byte [esp + 0x12], 0
je 0x41ca97
cmp byte [ebp + 0x648], 0
je 0x41ca97
push esi
push ebp
call fcn.0041cc60
add esp, 8
mov eax, dword [ebp + 0x1d8]
test eax, eax
je 0x41cab9
push 0
push esi
push dword [ebp + 0x1dc]
call eax
add esp, 0xc
cmp eax, 2
jne 0x41cafb
mov byte [esp + 0x13], 1
cmp dword [esp + 0x2c], 2
jne 0x41cb13
lea eax, [esp + 0x3c]
push eax
call fcn.00402f30
push eax
push dword [esp + 0x34]
push esi
push ebx
call fcn.0041c4c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41cb13
push esi
push ebx
call fcn.0041b710
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x41cc44
test eax, eax
je 0x41cab9
push esi
push ebx
call fcn.0041b710
add esp, 8
mov eax, 0x2a
jmp 0x41cc44
push 1
push esi
call fcn.0043f980
lea eax, [esp + 0x24]
push eax
call fcn.004123e0
add esp, 0xc
cmp dword [ebx + 0x2a8], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x298], xmm0
jle 0x41cb52
push 3
push dword [ebx + 0x2b4]
push dword [ebx + 0x2b0]
push ebp
call fcn.0040dc10
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x41cbf6
cmp dword [ebx + 0x94], 1
jne 0x41cbf6
cmp byte [ebx + 0x292], 0
jne 0x41cb99
push dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41cb99
test edi, edi
jne 0x41cbf2
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, edi
jmp 0x41cc44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x41cbea
cmp edi, 0x2732
jle 0x41cbb6
cmp edi, 0x2734
jle 0x41cbea
push edi
push ebx
call fcn.0042b030
push eax
lea eax, [esp + 0xc8]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.0041ae70
push esi
push ebx
mov dword [ebp + 0x48b4], edi
call fcn.0041b710
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x41cc44
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x41cc44
mov eax, dword [esp + 0x14]
mov dword [eax], esi
jmp 0x41cc42
mov byte [esp + 0xbc], 0
call fcn.004535a7
mov dword [eax], 0x273f
call fcn.004535a7
mov esi, eax
call fcn.004535a7
push dword [esi]
mov edi, eax
push ebx
call fcn.0042b030
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0041ad40
push dword [esp + 0x30]
push ebx
call fcn.0041b710
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xec]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449a41
add esp, 0xe0
ret