Function at 0x431410
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x4e3664
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x68], xmm0
push 8
push eax
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x74], 8
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x70], 0
call fcn.0042aae0
add esp, 0x10
cmp byte [esi], 0x5b
jne 0x4314ba
mov al, byte [esi + 1]
inc esi
xor edi, edi
test al, al
je 0x4314b3
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop dword [eax]
cmp al, 0x5d
je 0x4314aa
cmp edi, 0x40
jge 0x4314aa
push 3
push 0x4e2d18
push esi
mov byte [ebp + edi - 0x50], al
call ebx
add esp, 0xc
test eax, eax
jne 0x4314a1
add esi, 2
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
jne 0x431480
cmp edi, 0x41
jae 0x431612
mov byte [ebp + edi - 0x50], 0
jmp 0x4314ca
push 0x40
lea eax, [ebp - 0x50]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x54]
mov byte [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
je 0x431518
push ebx
push str.getaddrinfo___error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x54]
or edi, 0xffffffff
test esi, esi
je 0x431577
cmp edi, 0xffffffff
je 0x43152e
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x43156d
mov eax, dword [esi + 0x18]
mov ecx, eax
cmp word [eax], 0x17
jne 0x43155c
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43155c
mov dword [eax + 0x18], edx
mov ecx, dword [esi + 0x18]
push dword [esi + 0x10]
push ecx
push edi
call dword [sym.imp.WSOCK32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x431574
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x431522
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
jne 0x4315bb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x4e33a0
push str.Socket_error:__s___d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
test ebx, ebx
jns 0x4315ff
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.connect
push str.Socket_error:__s___d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
call fcn.004c7b1d
int3