Function at 0x40b600
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0x20
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00412d20
add esp, 0xc
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b3c0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40b655
xor eax, eax
jmp 0x40b8ae
cmp dword [ebp - 0x18], 0
jne 0x40b676
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
jmp 0x40b68f
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0042f891
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042f891
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40b6c3
cmp dword [ebp + 0x14], 0
je 0x40b6bc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 5
xor eax, eax
jmp 0x40b8ae
cmp dword [ebp - 0x10], 0
jne 0x40b6e7
push 0
push str._res0____0
push 0xa0
push 0x47b144
push 0x47b15c
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x40b6c3
xor eax, eax
jne 0x40b6c3
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x40b710
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0
je 0x40b718
jmp 0x40b6fe
cmp dword [ebp - 4], 0
jne 0x40b73e
cmp dword [ebp + 0x14], 0
je 0x40b72d
mov edx, dword [ebp + 0x14]
mov dword [edx], 6
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
jmp 0x40b8ae
push 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042f886
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40b773
push 0
push str._va____0
push 0xaa
push 0x47b174
push 0x47b18c
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x40b74f
xor eax, eax
jne 0x40b74f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40b7a4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40b8a1
push 0x90
push 1
call fcn.0042f886
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax*4], 0
jne 0x40b7f0
push 0
push str._va_i_____0
push 0xae
push 0x47b1a8
push 0x47b1c0
call fcn.0040e320
add esp, 0x14
xor edx, edx
jne 0x40b7c6
xor eax, eax
jne 0x40b7c6
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
cmp dword [edx + 0xc], 0x80
jbe 0x40b86f
push 0
push str.va_i___va_addrlen___sizeof_va_i___va_addr
push 0xb3
push str.....liblibmud_vss.c
push str.VSS_resolve
call fcn.0040e320
add esp, 0x14
xor eax, eax
jne 0x40b83f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
add eax, 0x10
push eax
call fcn.004127a0
add esp, 0xc
jmp 0x40b792
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret