Function at 0x524760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612420
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6fadcc]
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 0x5247b9
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 0x5249d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.0047bca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00479ac0
lea ecx, [ebp - 0x64]
call fcn.00479750
test eax, eax
jne 0x52480d
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.0047c5d0
mov al, byte [ebp - 0x79]
jmp 0x5249d0
push 0x67737c
lea ecx, [ebp - 0x64]
call fcn.0047f760
movzx ecx, al
test ecx, ecx
je 0x524849
push 0x677388
mov ecx, dword [ebp + 0x20]
call fcn.004770b0
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0047c5d0
mov al, byte [ebp - 0x7a]
jmp 0x5249d0
movzx edx, byte [0x6f2afc]
test edx, edx
je 0x524860
mov eax, dword [ebp + 0x18]
push eax
call fcn.00521260
add esp, 4
push 0x10
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.005e4a20
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.0047c200
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0xffffffff
jne 0x524986
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.005226f0
add esp, 0x2c
mov byte [ebp - 0x35], al
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x52493a
lea ecx, [ebp - 0x34]
call fcn.00479750
test eax, eax
je 0x52493a
lea ecx, [ebp - 0x34]
call fcn.00461710
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004770b0
mov byte [ebp - 0x7b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0047c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0047c5d0
mov al, byte [ebp - 0x7b]
jmp 0x5249d0
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 0x6773a8
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.0047c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0047c5d0
mov al, byte [ebp - 0x7c]
jmp 0x5249d0
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 0x6773d4
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.0047c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0047c5d0
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.005e0ec7
mov esp, ebp
pop ebp
ret 0x28