Function at 0x4f2290
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c680
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x74496c]
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 0x4f22e9
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 0x4f2500
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.00440500
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0043e320
lea ecx, [ebp - 0x64]
call fcn.0050d370
test eax, eax
jne 0x4f233d
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.00440e30
mov al, byte [ebp - 0x79]
jmp 0x4f2500
push 0x67e75c
lea ecx, [ebp - 0x64]
call fcn.00443fc0
movzx ecx, al
test ecx, ecx
je 0x4f2379
push 0x67e768
mov ecx, dword [ebp + 0x20]
call fcn.0043b930
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00440e30
mov al, byte [ebp - 0x7a]
jmp 0x4f2500
movzx edx, byte [0x6fcfec]
test edx, edx
je 0x4f2390
mov eax, dword [ebp + 0x18]
push eax
call fcn.004eed90
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.00440a60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0xffffffff
jne 0x4f24b6
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.004f0220
add esp, 0x2c
mov byte [ebp - 0x35], al
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x4f246a
lea ecx, [ebp - 0x34]
call fcn.0050d370
test eax, eax
je 0x4f246a
lea ecx, [ebp - 0x34]
call fcn.00576260
push eax
mov ecx, dword [ebp + 0x20]
call fcn.0043b930
mov byte [ebp - 0x7b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00440e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00440e30
mov al, byte [ebp - 0x7b]
jmp 0x4f2500
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 0x67e788
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.00440e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00440e30
mov al, byte [ebp - 0x7c]
jmp 0x4f2500
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 0x67e7b4
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.00440e30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00440e30
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.005ff0f4
mov esp, ebp
pop ebp
ret 0x28