Function at 0x4376a0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x44dae0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, dword [esp + 0x60]
xor ebx, ebx
cmp dword [edi + 0x4c], ebx
je 0x4378bc
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x64]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [esi + 1]
cmp ecx, eax
jae 0x4378bc
lea edx, [esp + 0x18]
push edx
call fcn.0042af60
mov dword [esp + 0x58], ebx
push esi
mov eax, edi
mov dword [esp + 0x18], ebx
call fcn.00437980
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x437727
mov eax, dword [eax + 4]
jmp 0x43772a
add eax, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0xf
push eax
call sub.DNSAPI.dll_DnsQuery_A
cmp eax, ebx
jne 0x4378b3
mov esi, dword [esp + 0x14]
call fcn.004174a0
test eax, eax
je 0x437759
call fcn.00419840
call fcn.00436430
cmp esi, ebx
je 0x437804
cmp word [esi + 8], 0xf
jne 0x4377fa
mov edx, dword [esp + 0x64]
push edx
mov eax, edi
call fcn.00437980
cmp dword [eax + 0x18], ebp
jb 0x437782
mov eax, dword [eax + 4]
jmp 0x437785
add eax, 4
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.0043a90f
add esp, 8
test eax, eax
jne 0x4377fa
mov ecx, dword [esi + 0x18]
movzx edx, word [esi + 0x1c]
mov eax, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4377b6
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004030c0
lea ebx, [esp + 0x30]
lea edi, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.00404fb0
mov byte [esp + 0x58], 0
cmp dword [esp + 0x4c], ebp
jb 0x4377f4
mov eax, dword [esp + 0x38]
push eax
call fcn.004393c9
add esp, 4
mov edi, dword [esp + 0x60]
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x437761
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43786d
push 1
push eax
call sub.DNSAPI.dll_DnsFree
call fcn.004174a0
test eax, eax
je 0x437822
call fcn.00436210
lea eax, [esp + 0x60]
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437830
sub eax, edx
mov ecx, 0
setne cl
mov eax, 0x1b4e81b5
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x4b
jle 0x437869
push 0x4b
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004308a0
call fcn.00419840
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x24]
xor esi, esi
sar edx, 5
test edx, edx
jbe 0x4378b3
mov edi, edi
mov eax, esi
lea ecx, [esp + 0x18]
call fcn.00404f20
cmp dword [eax], 0xd
jne 0x4378a3
mov eax, esi
lea ecx, [esp + 0x18]
call fcn.00404f20
add eax, 4
cmp dword [eax + 0x14], ebx
jne 0x4378d7
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
inc esi
sar eax, 5
cmp esi, eax
jb 0x437880
lea esi, [esp + 0x18]
call fcn.00404ed0
mov eax, 0x80004005
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
mov eax, esi
lea ecx, [esp + 0x18]
call fcn.00404f20
mov ecx, dword [esp + 0x64]
mov esi, eax
push ecx
mov eax, edi
add esi, 4
call fcn.00437980
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push esi
mov ecx, eax
call fcn.00402d80
call fcn.00435550
sub eax, 1
jne 0x437915
call fcn.00436500
call fcn.00419840
lea esi, [esp + 0x18]
call fcn.00404ed0
xor eax, eax
jmp 0x4378c1