Function at 0x1001d3a0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd0
push ebx
push ebp
xor eax, eax
push edi
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
mov byte [esp + 0xe], al
mov eax, dword [esp + 0xe8]
mov ebp, dword [edi]
mov dword [eax], 0xffffffff
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xec]
push edi
call fcn.1001cac0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1001d3f5
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1001d310
add esp, 0xc
test al, al
jne 0x1001d44a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1002e210
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100198b0
push dword [esp + 0x2c]
push edi
call fcn.1001c3b0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xd0
ret
lea eax, [esp + 0xb0]
push eax
push str.__Trying__s..._n
push ebp
call fcn.10019980
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 2
je 0x1001d46e
cmp eax, 0x17
jne 0x1001d47c
cmp dword [esp + 0x24], 1
jne 0x1001d47c
mov eax, 1
jmp 0x1001d47e
xor eax, eax
mov esi, dword [esp + 0x14]
test eax, eax
setne al
mov byte [esp + 0x13], al
test al, al
je 0x1001d4a2
cmp byte [ebp + 0x29a], 0
je 0x1001d4a2
push esi
push edi
call fcn.1001d750
add esp, 8
push esi
call fcn.1001c9e0
add esp, 4
cmp byte [esp + 0x13], 0
je 0x1001d4c5
cmp byte [ebp + 0x398], 0
je 0x1001d4c5
push esi
push ebp
call fcn.1001d680
add esp, 8
mov eax, dword [ebp + 0x16c]
test eax, eax
je 0x1001d4eb
push 0
push esi
push dword [ebp + 0x170]
call eax
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 2
jne 0x1001d539
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x1001d4f9
cmp eax, 0x17
jne 0x1001d557
lea eax, [esp + 0x30]
push eax
call fcn.1002eee0
push eax
push dword [esp + 0x28]
push esi
push edi
call fcn.1001ce30
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1001d557
push esi
push edi
call fcn.1001c3b0
add esp, 8
cmp ebx, 1
jne 0x1001d657
pop esi
pop edi
pop ebp
lea eax, [ebx + 6]
pop ebx
add esp, 0xd0
ret
test eax, eax
je 0x1001d4eb
push esi
push edi
call fcn.1001c3b0
add esp, 8
mov eax, 0x2a
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xd0
ret
push 1
push esi
call fcn.1002f230
add esp, 8
call fcn.1001ec30
cmp dword [edi + 0x254], 1
mov dword [edi + 0x24c], eax
mov dword [edi + 0x250], edx
jle 0x1001d58b
push dword [edi + 0x258]
push ebp
call fcn.10019fa0
add esp, 8
cmp byte [esp + 0x12], 0
jne 0x1001d664
cmp dword [edi + 0x7c], 1
jne 0x1001d664
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_connect]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1001d5c5
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov dword [esp + 0x18], eax
jmp 0x1001d5c9
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], 0x17
sete cl
cmp dword [esp + 0x14], 0xffffffff
mov byte [edi + 0x237], cl
jne 0x1001d64a
cmp eax, 0xb
je 0x1001d632
cmp eax, 0x2732
jle 0x1001d5f1
cmp eax, 0x2734
jle 0x1001d632
push eax
push edi
call fcn.1002e210
push eax
lea eax, [esp + 0xbc]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.10019980
mov eax, dword [esp + 0x30]
push esi
push edi
mov dword [ebp + 0x84f0], eax
call fcn.1001c3b0
add esp, 0x20
mov ebx, 7
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xd0
ret
mov eax, dword [esp + 0xec]
xor ebx, ebx
mov dword [eax], esi
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xd0
ret
test ebx, ebx
jne 0x1001d657
mov eax, dword [esp + 0xec]
mov dword [eax], esi
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xd0
ret
mov eax, dword [esp + 0xec]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xd0
ret