Function at 0x436d80
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x714ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x813e5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004080a0
add esp, 8
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f530
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x436e40
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004089a0
mov eax, dword [ebp - 0x38]
jmp 0x436f97
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
jmp 0x436e51
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x436f68
push 0x81
push 0
push 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x436ea6
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x436eae
jmp 0x436e48
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x436ed1
mov dword [ebp - 0x3c], 1
push 4
lea eax, [ebp - 0x3c]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp + 0x1c]
call fcn.00431830
movzx edx, al
test edx, edx
je 0x436eec
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0043c1b0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x17
jne 0x436f10
mov dword [ebp - 0x40], 0
push 4
lea edx, [ebp - 0x40]
push edx
push 0x1b
push 0x29
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp + 0x44]
call fcn.00423d20
movzx eax, al
test eax, eax
je 0x436f57
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004089a0
mov eax, dword [ebp - 0x44]
jmp 0x436f97
mov eax, dword [ebp - 0x30]
push eax
call fcn.00423690
add esp, 4
jmp 0x436e48
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x48], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402bd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004089a0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a92ff
mov esp, ebp
pop ebp
ret