Function at 0x421d85
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46528b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp + 8]
push eax
call fcn.0043666e
add esp, 4
test eax, eax
je 0x421dfa
lea ecx, [ebp + 8]
call fcn.004032e0
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0
je 0x421df8
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [ecx + 8], edx
jmp 0x421e50
lea ecx, [ebp + 8]
call fcn.004032e0
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 8], 0xffffffff
jne 0x421e50
push 0x403350
push str.DNS_failed:_Could_not_convert_IP_address
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004584e5
mov eax, dword [ebp - 0x1c]
jmp 0x4220f5
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
jne 0x422068
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
push 0x403350
lea ecx, [ebp + 8]
call fcn.004032e0
push eax
push str.DNS_failed_resolving:
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0x276d
jg 0x421ed0
cmp dword [ebp - 0x34], 0x276d
je 0x421ef0
mov edx, dword [ebp - 0x34]
sub edx, 0x2714
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x2e
ja case.default.0x421ee9
mov ecx, dword [ebp - 0x34]
xor eax, eax
mov al, byte [ecx + 0x422119]
jmp dword [eax*4 + 0x422105]
mov edx, dword [ebp - 0x34]
sub edx, 0x2af9
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 3
ja case.default.0x421ee9
mov eax, dword [ebp - 0x34]
jmp dword [eax*4 + 0x422148]
push 0x403350
push str.DNS_failed:_Sockets_not_initialised
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Network_subsystem_has_failed
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Authoritative_host_not_found
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Host_not_found__try_again
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x422068
push 0x403350
push str.DNS_failed:_Non_recoverable_error
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Valid_name__no_data
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Blocking_socket_call_in_progress
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x422068
push 0x403350
push str.DNS_failed:_Server_name_not_valid_part_of_address_space
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
jmp 0x422068
push 0x403350
push str.DNS_failed:_Call_canceled
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x422068
push 0x403350
push str.DNS_failed:_Unrecognized_error_code
mov ecx, 0x48bd28
call fcn.00444e5c
mov ecx, eax
call fcn.004032c0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4220dd
call sub.WSOCK32.dll_WSACleanup
lea ecx, [ebp - 0x18]
call fcn.004032a0
mov byte [ebp - 4], 1
push 0x5e1
lea ecx, [ebp - 0x18]
call fcn.0045be17
push 0x18
call fcn.00403280
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x28], 0
je 0x4220b8
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0xdb
mov ecx, dword [ebp - 0x28]
call fcn.0042c3cb
mov dword [ebp - 0x38], eax
jmp 0x4220bf
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 0x470088
lea ecx, [ebp - 0x20]
push ecx
call fcn.0043812b
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004584e5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4