Function at 0x4d8700
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1a50
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6e8794]
xor eax, ebp
mov dword [ebp - 0x68], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 0x28]
mov byte [eax], 0
mov ecx, dword [ebp + 0x2c]
mov byte [ecx], 0
cmp dword [ebp + 8], 0
jne 0x4d8759
push str.DNS_lookup_failed__hostname_is_NULL
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x4d8970
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.0042fc10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0042da30
lea ecx, [ebp - 0x64]
call fcn.004f8fc0
test eax, eax
jne 0x4d87ad
push str.DNS_lookup_failed__hostname_is_empty
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x79], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00430540
mov al, byte [ebp - 0x79]
jmp 0x4d8970
push 0x639554
lea ecx, [ebp - 0x64]
call fcn.004336d0
movzx ecx, al
test ecx, ecx
je 0x4d87e9
push 0x639560
mov ecx, dword [ebp + 0x20]
call fcn.0042b010
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00430540
mov al, byte [ebp - 0x7a]
jmp 0x4d8970
movzx edx, byte [0x6a0afc]
test edx, edx
je 0x4d8800
mov eax, dword [ebp + 0x18]
push eax
call fcn.004d5200
add esp, 4
push 0x10
push 0
lea ecx, [ebp - 0x78]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, 2
mov word [ebp - 0x78], dx
push 0x50
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x76], ax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x34]
call fcn.00430170
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0xffffffff
jne 0x4d8926
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0xac]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d6690
add esp, 0x2c
mov byte [ebp - 0x35], al
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x4d88da
lea ecx, [ebp - 0x34]
call fcn.004f8fc0
test eax, eax
je 0x4d88da
lea ecx, [ebp - 0x34]
call fcn.0042d6b0
push eax
mov ecx, dword [ebp + 0x20]
call fcn.0042b010
mov byte [ebp - 0x7b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00430540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00430540
mov al, byte [ebp - 0x7b]
jmp 0x4d8970
push str.DNS_lookup_failed.
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 8]
push eax
push 0x639580
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00430540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00430540
mov al, byte [ebp - 0x7c]
jmp 0x4d8970
push str.IP_address_passed_to_DNS_lookup
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
push ecx
push 0x6395ac
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x2c]
call edx
mov byte [ebp - 0x7d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00430540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00430540
mov al, byte [ebp - 0x7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x68]
xor ecx, ebp
call fcn.005c4d04
mov esp, ebp
pop ebp
ret 0x28