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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5076f4
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x546190]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x50
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x22c]
mov esi, ecx
push 0x513bcc
xor ebx, ebx
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x10], ebx
mov eax, edi
jl 0x42c30b
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x230]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x42c3b9
mov esi, 0xf
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], esi
mov byte [esp + 0x54], bl
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x250], ebx
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 2
call fcn.00439650
push 0x21
mov dword [esp + 0x24c], 1
push str.Failed_to_resolve_address_for_0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
call fcn.00439740
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x250], 2
call fcn.00438910
sub esp, 0x1b0
mov dword [esp + 0x1bc], esp
mov ecx, esp
push eax
mov byte [esp + 0x3fc], 3
call fcn.00438600
call fcn.004036c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x42c477
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 0xf
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], esi
mov byte [esp + 0x54], bl
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x250], 4
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 2
call fcn.00439650
push 0x1e
mov dword [esp + 0x24c], 5
push str.Failed_to_create_sockey_to_0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
call fcn.00439740
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x250], 6
call fcn.00438910
sub esp, 0x1b0
mov dword [esp + 0x1bc], esp
mov ecx, esp
push eax
mov byte [esp + 0x3fc], 7
call fcn.00438600
call fcn.004036c0
mov eax, dword [esp + 0x10]
jmp 0x42c484
mov esi, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp esi, ebx
jge 0x42c4a5
cmp dword [eax + 0x1c], ebx
jne 0x42c480
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, ebx
jge 0x42c545
mov esi, 0xf
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], esi
mov byte [esp + 0x54], bl
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x250], 8
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 2
call fcn.00439650
push 0x1d
mov dword [esp + 0x24c], 9
push str.Could_not_connect_to_host_0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
call fcn.00439740
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x250], 0xa
call fcn.00438910
sub esp, 0x1b0
mov dword [esp + 0x1bc], esp
mov ecx, esp
push eax
mov byte [esp + 0x3fc], 0xb
call fcn.00438600
call fcn.004036c0
mov esi, dword [esp + 0xc]
call fcn.0042c580
mov byte [esi + 0xc], 1
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret