Function at 0x4de850
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x1c]
call fcn.004219a0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
jne 0x4de8ec
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
jne 0x4de8ec
cmp dword [ebp + 0x20], 0
je 0x4de8ec
mov edx, dword [ebp + 0x20]
cmp dword [edx + 0x4c], 0
je 0x4de8ec
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00421e60
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
movzx edx, byte [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 0x48]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x20]
add ecx, 0x30
call fcn.00424f20
mov dword [ebp + 8], eax
mov dword [ebp - 0x48], 1
mov byte [ebp + 0x14], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4de916
mov dword [ebp - 0x4c], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x4c]
jmp 0x4deaaa
mov eax, dword [ebp - 0x34]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00639960
add esp, 0xc
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
movzx eax, byte [ebp + 0x1c]
push eax
movzx ecx, byte [ebp + 0x18]
push ecx
movzx edx, byte [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.004dec30
add esp, 0x18
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jb 0x4dea80
cmp dword [ebp - 0x48], 0
je 0x4dea80
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 1
je 0x4de9e2
cmp dword [ebp - 0x3c], 2
je 0x4de9a0
cmp dword [ebp - 0x3c], 4
je 0x4dea21
jmp 0x4dea80
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00424f20
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004ddae0
add esp, 0x10
cmp eax, 0xc8
jne 0x4de9c6
jmp 0x4de9dd
mov dword [ebp - 0x50], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x50]
jmp 0x4deaaa
jmp 0x4dea80
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00424f20
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004dd9c0
add esp, 0x10
cmp eax, 0xc8
jne 0x4dea08
jmp 0x4dea1f
mov dword [ebp - 0x54], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x54]
jmp 0x4deaaa
jmp 0x4dea80
mov edx, dword [ebp + 0x20]
push edx
call fcn.004dd0e0
add esp, 4
test eax, eax
jne 0x4dea6d
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00424f20
push eax
mov edx, dword [ebp - 0x30]
push edx
call fcn.004de040
add esp, 0x10
cmp eax, 0xc8
jne 0x4dea57
jmp 0x4dea6b
mov dword [ebp - 0x58], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x58]
jmp 0x4deaaa
jmp 0x4dea80
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x5c]
jmp 0x4deaaa
cmp dword [ebp - 0x40], 0
je 0x4dea99
lea ecx, [ebp - 0x40]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x1c]
call fcn.00421c30
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret