Function at 0x420360
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x453a54
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00424760
mov ebp, 1
mov dword [esp + 0x58], ebp
cmp dword [esi + 0xd9c], 0
jne 0x420415
push str.DNSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x4203e7
mov esi, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x38]
call fcn.004247d0
jmp 0x42062a
push str.DnsGetCacheDataTable
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xd9c], eax
test eax, eax
jne 0x420415
mov esi, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x38]
call fcn.004247d0
lea edx, [esp + 0x34]
push edx
jmp 0x42062f
mov ecx, dword [esi + 0xd9c]
lea eax, [esp + 0x18]
push eax
call ecx
test eax, eax
je 0x4203fd
mov ebx, dword [esp + 0x18]
mov eax, 5
cmp eax, dword [esi + 0xa30]
sbb esi, esi
and esi, 0x8000
add esi, 0x10
mov dword [esp + 0x30], esi
test ebx, ebx
je 0x420581
lea esp, [esp]
mov edx, dword [ebx + 4]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
push ebp
push edx
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x42054e
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
test eax, eax
je 0x420547
mov eax, dword [esp + 0x24]
cmp word [eax + 8], bp
jne 0x42052d
mov ecx, dword [esp + 0x64]
cmp dword [eax + 0x18], ecx
jne 0x42052d
mov edx, dword [0x491d10]
mov eax, dword [edx + 0xc]
mov ecx, 0x491d10
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x58], 2
mov ecx, dword [ebx + 4]
push ecx
lea edx, [esp + 0x24]
push 0x479110
push edx
mov dword [esp + 0x38], ebp
call fcn.0041c5e0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
push ebp
push str.sDomain:__s
call fcn.00404c20
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 4]
add esp, 8
lea edi, [eax + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00424d00
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00424da0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
lea eax, [ebp - 0x10]
mov byte [esp + 0x58], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, 1
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x42047c
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
push ebp
push eax
call sub.DNSAPI.dll_DnsFree
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov ebx, dword [ebx]
push 0
push eax
call sub.DNSAPI.dll_DnsFree
mov ecx, dword [esp + 0x18]
push 0
push ecx
call sub.DNSAPI.dll_DnsFree
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x420450
cmp dword [esp + 0x2c], ebx
jne 0x42061c
mov edx, dword [0x491d10]
mov eax, dword [edx + 0xc]
mov ecx, 0x491d10
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x34]
push str._d._d._d._d
push eax
mov byte [esp + 0x70], 3
call fcn.0041c5e0
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 4]
add esp, 0x18
lea edi, [eax + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00424d00
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00424da0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42061c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x38]
call fcn.004247d0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x20], ebp
mov byte [esp + 0x5c], 0
call fcn.00424880
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8