Function at 0x514460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x603e50
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x6e5e14]
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 0x5144b9
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 0x5146d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.0046b970
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00469790
lea ecx, [ebp - 0x64]
call fcn.004513e0
test eax, eax
jne 0x51450d
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.0046c2a0
mov al, byte [ebp - 0x79]
jmp 0x5146d0
push 0x6682c4
lea ecx, [ebp - 0x64]
call fcn.0046f430
movzx ecx, al
test ecx, ecx
je 0x514549
push 0x6682d0
mov ecx, dword [ebp + 0x20]
call fcn.00466da0
mov byte [ebp - 0x7a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0046c2a0
mov al, byte [ebp - 0x7a]
jmp 0x5146d0
movzx edx, byte [0x6ddafc]
test edx, edx
je 0x514560
mov eax, dword [ebp + 0x18]
push eax
call fcn.00510f60
add esp, 4
push 0x10
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.005d4860
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.0046bed0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0xffffffff
jne 0x514686
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.005123f0
add esp, 0x2c
mov byte [ebp - 0x35], al
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
je 0x51463a
lea ecx, [ebp - 0x34]
call fcn.004513e0
test eax, eax
je 0x51463a
lea ecx, [ebp - 0x34]
call fcn.00534d30
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00466da0
mov byte [ebp - 0x7b], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0046c2a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0046c2a0
mov al, byte [ebp - 0x7b]
jmp 0x5146d0
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 0x6682f0
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.0046c2a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0046c2a0
mov al, byte [ebp - 0x7c]
jmp 0x5146d0
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 0x66831c
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.0046c2a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0046c2a0
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.005d0de7
mov esp, ebp
pop ebp
ret 0x28