Function at 0x54d440
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62b268
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xb0]
mov cl, byte [eax + 0x18d]
test cl, cl
je 0x54d54d
mov eax, dword [eax + 0x190]
test eax, eax
je 0x54d487
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
jmp 0x54d7a1
mov eax, dword [0x6d2910]
test eax, eax
jne 0x54d4dc
mov eax, dword [0x6d2918]
test eax, eax
jne 0x54d4ad
push str.Dnsapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x6d2918], eax
je 0x54d4d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DnsQuery_A
push eax
call esi
mov edx, dword [0x6d2918]
push str.DnsRecordListFree
push edx
mov dword [0x6d2910], eax
call esi
mov dword [0x6d2914], eax
mov eax, dword [0x6d2910]
test eax, eax
je 0x54d54d
mov edx, dword [esp + 0x2c]
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 0x54d54d
mov edx, dword [esp + 0x10]
xor bl, bl
test edx, edx
mov ecx, edx
je 0x54d54d
cmp word [ecx + 8], si
jne 0x54d51a
mov eax, dword [ecx + 0x18]
mov edi, dword [esp + 0x30]
test eax, eax
mov dword [edi], eax
jne 0x54d522
mov ecx, dword [ecx]
test ecx, ecx
jne 0x54d507
jmp 0x54d534
mov ecx, dword [ebp + 0xb0]
mov bl, 1
mov dword [ecx + 0x190], eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x54d545
mov eax, dword [0x6d2914]
test eax, eax
je 0x54d545
push esi
push edx
call eax
test bl, bl
jne 0x54d7a1
mov edi, dword [esp + 0x2c]
push edi
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x54d728
mov eax, dword [ebp + 0xb4]
test eax, eax
jne 0x54d681
mov edx, dword [ebp + 0x184]
mov al, byte [edx + 0x15c]
test al, al
jne 0x54d681
mov eax, dword [ebp + 0xb0]
push 0x3f
mov ecx, dword [eax]
push ecx
call fcn.005e71f0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x54d681
mov edx, dword [0x6cd768]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0xb0]
mov dword [esp + 0x24], esi
mov edx, dword [ecx + 4]
push edx
push eax
lea eax, [esp + 0x18]
push str.__s_s
push eax
call fcn.005fc86b
mov esi, dword [ebp + 0xb0]
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x54d5e7
push eax
call fcn.005ffe68
add esp, 4
test ebx, ebx
jne 0x54d5f0
mov dword [esi + 4], ebx
jmp 0x54d64d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x54d603
mov dword [esi + 4], eax
jmp 0x54d64d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005ffe3f
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
jne 0x54d62e
push str.URL::set_serverPath__:_Not_enough_memory__n
mov ecx, esi
call fcn.005bf600
jmp 0x54d64d
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 + 0x24], 0xffffffff
call fcn.00603a3c
test esi, esi
jne 0x54d728
mov edi, dword [esp + 0x2c]
call sub.WS2_32.dll_WSAGetLastError
push edi
mov esi, eax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [esp + 0x30]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x54d7a1
mov al, byte [esp + 0x34]
test al, al
je 0x54d724
mov edx, dword [0x6cd768]
mov dword [esp + 0x34], edx
mov eax, dword [0x6d36c4]
push edi
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x30], 1
call fcn.005fc86b
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, ebp
push 1
push edx
call fcn.0054d1d0
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x9c]
push eax
call fcn.005559f0
push esi
lea ecx, [esp + 0x38]
push str.Error_code___ld_n
push ecx
call fcn.005fc86b
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, ebp
push edx
call fcn.0054d2a0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.00603a3c
mov eax, esi
jmp 0x54d7a3
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov ecx, dword [0x6cd768]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x17]
mov ecx, dword [esp + 0x16]
and edx, 0xff
and ecx, 0xff
push edx
mov edx, dword [esp + 0x19]
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea eax, [esp + 0x40]
push str.Found__d._d._d._d_r_n
push eax
mov dword [esp + 0x3c], 2
call fcn.005fc86b
mov ecx, dword [esp + 0x48]
add esp, 0x18
push ecx
mov ecx, ebp
call fcn.0054d2a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00603a3c
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc