Function at 0x1001f9b0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xe0
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push ebp
mov ebp, dword [esp + 0xe8]
mov edx, dword [ebp]
push esi
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x28]
push edx
push eax
xor esi, esi
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.1001f8b0
add esp, 0x10
mov dword [esp + 8], eax
cmp eax, esi
je 0x1001fa24
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.100377f0
add esp, 0xe0
ret
push ebx
push edi
lea ebx, [esp + 0x28]
lea edi, [esp + 0xbc]
lea esi, [esp + 0x3c]
call fcn.1001f420
test eax, eax
jne 0x1001fa71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10024630
push eax
mov eax, dword [esp + 0x24]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.1000a2d0
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.1001f860
add esp, 0x20
jmp 0x1001fc87
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xbc]
push edx
push str.__Trying__s..._n
push esi
call fcn.1000a240
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
add esp, 0xc
cmp eax, 2
je 0x1001fa9d
cmp eax, 0x17
jne 0x1001fb08
mov eax, 1
cmp dword [esp + 0x30], eax
jne 0x1001fb08
cmp dword [esi + 0x364], 0
mov dword [esp + 0x14], eax
je 0x1001fabe
mov edx, ebx
mov edi, ebp
call fcn.1001f620
push ebx
call fcn.1001f680
add esp, 4
cmp dword [esp + 0x14], 0
je 0x1001fade
cmp dword [esi + 0x474], 0
je 0x1001fade
mov edi, ebx
call fcn.1001ecf0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x1001fb2a
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
mov edi, eax
add esp, 0xc
cmp edi, 2
jne 0x1001fb12
mov dword [esp + 0x20], 1
jmp 0x1001fb2e
mov dword [esp + 0x14], 0
jmp 0x1001fabe
test edi, edi
je 0x1001fb2e
push ebx
push ebp
call fcn.1001f860
add esp, 8
mov eax, 0x2a
jmp 0x1001fc89
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x1001fb3c
cmp eax, 0x17
jne 0x1001fb82
lea edx, [esp + 0x3c]
push edx
call fcn.10016100
push eax
mov eax, dword [esp + 0x34]
push eax
push ebx
push ebp
call fcn.1001ee80
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
je 0x1001fb7e
push ebx
push ebp
call fcn.1001f860
add esp, 8
cmp esi, 1
jne 0x1001fb77
lea eax, [esi + 6]
jmp 0x1001fc89
mov eax, esi
jmp 0x1001fc89
mov esi, dword [esp + 0x18]
push 1
push ebx
call fcn.1002a110
add esp, 8
call fcn.10001900
cmp dword [ebp + 0x2bc], 1
mov dword [ebp + 0x2b4], eax
mov dword [ebp + 0x2b8], edx
jle 0x1001fbb7
mov ecx, dword [ebp + 0x2c0]
push ecx
push esi
call fcn.10021630
add esp, 8
cmp dword [esp + 0x20], 0
jne 0x1001fc81
cmp dword [ebp + 0x8c], 1
jne 0x1001fc81
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001fbf3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x1c], eax
mov edi, eax
xor ecx, ecx
cmp dword [esp + 0x2c], 0x17
sete cl
mov dword [ebp + 0x26c], ecx
cmp esi, 0xffffffff
jne 0x1001fc6e
cmp edi, 0xb
je 0x1001fc5a
cmp edi, 0x2732
jle 0x1001fc1d
cmp edi, 0x2734
jle 0x1001fc5a
push edi
push ebp
call fcn.10024630
mov esi, dword [esp + 0x20]
push eax
lea edx, [esp + 0xc8]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.1000a240
push ebx
push ebp
mov dword [esi + 0x860c], edi
call fcn.1001f860
mov dword [esp + 0x30], 7
mov eax, dword [esp + 0x30]
add esp, 0x20
jmp 0x1001fc89
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
jmp 0x1001fc89
cmp dword [esp + 0x10], 0
jne 0x1001fc7b
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
jmp 0x1001fc89
mov ecx, dword [esp + 0x24]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [esp + 0xec]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.100377f0
add esp, 0xe0
ret