Function at 0x10056880
Capabilities:
Connect socket
Resolve dns
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x1008d040]
xor eax, esp
mov dword [esp + 0x70], eax
movzx eax, word [esp + 0x7c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x7c]
push esi
push edi
push eax
push 0x1005eb68
lea eax, [esp + 0x38]
movlpd qword [esp + 0x24], xmm0
push 8
push eax
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 8
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
call fcn.10013030
add esp, 0x10
cmp byte [ebx], 0x5b
jne 0x10056935
mov al, byte [ebx + 1]
lea ecx, [ebx + 1]
xor esi, esi
lea edi, [esi + 1]
test al, al
je 0x1005692e
cmp al, 0x5d
je 0x10056925
cmp esi, 0x40
jge 0x10056925
push 3
push 0x1005e5b0
mov byte [esp + esi + 0x40], al
inc esi
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
lea ecx, [edi + 2]
test eax, eax
cmovne ecx, edi
lea edi, [ecx + 1]
mov al, byte [ebx + edi]
lea ecx, [ebx + edi]
test al, al
jne 0x100568f2
cmp esi, 0x41
jae 0x10056a9d
mov byte [esp + esi + 0x38], 0
jmp 0x10056945
push 0x40
lea eax, [esp + 0x3c]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
lea eax, [esp + 0xc]
mov byte [esp + 0x78], 0
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
je 0x10056998
push ebx
push str.getaddrinfo___error_:__d_n
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
add esp, 4
push eax
call fcn.10052cb0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100574bd
add esp, 0x74
ret
mov esi, dword [esp + 0xc]
or edi, 0xffffffff
test esi, esi
je 0x10056a01
push ebp
mov ebp, dword [esp + 0x90]
nop dword [eax + eax]
cmp edi, 0xffffffff
je 0x100569bc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x100569f5
mov eax, dword [esi + 0x18]
cmp word [eax], 0x17
jne 0x100569e2
test ebp, ebp
je 0x100569e2
mov dword [eax + 0x18], ebp
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x100569fc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100569b0
mov esi, dword [esp + 0x10]
pop ebp
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
jne 0x10056a45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket
push str.Socket_error:__s___d_n
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
add esp, 4
push eax
call fcn.10052cb0
add esp, 0x10
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100574bd
add esp, 0x74
ret
test ebx, ebx
jns 0x10056a89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect
push str.Socket_error:__s___d_n
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
add esp, 4
push eax
call fcn.10052cb0
add esp, 0x10
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100574bd
add esp, 0x74
ret
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100574bd
add esp, 0x74
ret
call fcn.10058109
int3