Function at 0x532ce0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x606bd0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xb0]
mov cl, byte [eax + 0x179]
test cl, cl
je 0x532ded
mov eax, dword [eax + 0x17c]
test eax, eax
je 0x532d27
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
jmp 0x532fd5
mov eax, dword [0x6cd350]
test eax, eax
jne 0x532d7c
mov eax, dword [0x6cd358]
test eax, eax
jne 0x532d4d
push str.Dnsapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x6cd358], eax
je 0x532d73
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DnsQuery_A
push eax
call esi
mov edx, dword [0x6cd358]
push str.DnsRecordListFree
push edx
mov dword [0x6cd350], eax
call esi
mov dword [0x6cd354], eax
mov eax, dword [0x6cd350]
test eax, eax
je 0x532ded
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
mov esi, 1
push 0x148
push esi
push edx
call eax
test eax, eax
jne 0x532ded
mov edx, dword [esp + 0x10]
xor bl, bl
test edx, edx
mov ecx, edx
je 0x532ded
cmp word [ecx + 8], si
jne 0x532dba
mov eax, dword [ecx + 0x18]
mov edi, dword [esp + 0x2c]
test eax, eax
mov dword [edi], eax
jne 0x532dc2
mov ecx, dword [ecx]
test ecx, ecx
jne 0x532da7
jmp 0x532dd4
mov ecx, dword [ebp + 0xb0]
mov bl, 1
mov dword [ecx + 0x17c], eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x532de5
mov eax, dword [0x6cd354]
test eax, eax
je 0x532de5
push esi
push edx
call eax
test bl, bl
jne 0x532fd5
mov edi, dword [esp + 0x28]
push edi
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x532fc8
mov eax, dword [ebp + 0xb4]
test eax, eax
jne 0x532f21
mov edx, dword [ebp + 0x17c]
mov al, byte [edx + 0x150]
test al, al
jne 0x532f21
mov eax, dword [ebp + 0xb0]
push 0x3f
mov ecx, dword [eax]
push ecx
call fcn.005c2c70
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x532f21
mov edx, dword [0x6c826c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0xb0]
mov dword [esp + 0x20], esi
mov edx, dword [ecx + 4]
push edx
push eax
lea eax, [esp + 0x18]
push str.__s_s
push eax
call fcn.005d809b
mov esi, dword [ebp + 0xb0]
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x532e87
push eax
call fcn.005db696
add esp, 4
test ebx, ebx
jne 0x532e90
mov dword [esi + 4], ebx
jmp 0x532eed
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x532ea3
mov dword [esi + 4], eax
jmp 0x532eed
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005db66d
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
jne 0x532ece
push str.URL::set_serverPath__:_Not_enough_memory__n
mov ecx, esi
call fcn.0059bb00
jmp 0x532eed
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov edx, dword [ebp + 0xb0]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_gethostbyname
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
test esi, esi
jne 0x532fc8
mov edi, dword [esp + 0x28]
call sub.WS2_32.dll_WSAGetLastError
push edi
mov esi, eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [esp + 0x2c]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x532fd5
mov al, byte [esp + 0x30]
test al, al
je 0x532fc4
mov edx, dword [0x6c826c]
mov dword [esp + 0x30], edx
mov eax, dword [0x6ce06c]
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x2c], 1
call fcn.005d809b
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, ebp
push 1
push edx
call fcn.00532a80
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x9c]
push eax
call fcn.0053a7e0
push esi
lea ecx, [esp + 0x34]
push str.Error_code___ld_n
push ecx
call fcn.005d809b
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, ebp
push edx
call fcn.00532b50
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov eax, esi
jmp 0x532fd7
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc