Function at 0x40a990
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x429468
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43a14c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ebx, ebx
push str.WSHTCPIP.DLL
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x44030c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44030c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], eax
lea esp, [esp]
cmp eax, ebx
jne 0x40aa3e
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x68
push 5
push ebp
mov dword [esp + 0x30], ebx
call sub.DNSAPI.dll_DnsQuery_W
cmp eax, ebx
jne 0x40aae0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40aae0
mov ebx, dword [eax + 0x18]
lea eax, [esp + 0x14]
call fcn.00403b60
mov ecx, dword [esp + 0x18]
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov esi, dword [esp + 0x14]
jmp 0x40aae0
cmp eax, 1
jne 0x40aae0
push 5
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.004034c0
lea eax, [esp + 0x28]
push eax
call fcn.0040b510
add esp, 0xc
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40aabb
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x40aaaa
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40aaaa
call fcn.00403f90
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40aaa1
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x40aabb
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403ef0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jle 0x40ac0b
push 0x2e
push esi
call fcn.004198ec
add esp, 8
test eax, eax
jne 0x40aafe
or eax, 0xffffffff
jmp 0x40ab00
sub eax, esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0040e240
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ab60
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ab53
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ab53
call fcn.00403f90
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40ab4a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40ab60
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403ef0
mov byte [esp + 0x38], 0
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 0x40ab85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040e050
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
call fcn.00403570
mov byte [esp + 0x38], 3
mov edx, dword [eax]
lea ecx, [esp + 0x28]
call fcn.00415f70
mov byte [esp + 0x38], 4
mov ebx, dword [eax]
lea eax, [esp + 0x14]
call fcn.00403b60
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esi - 0xc], ebx
jg 0x40ac24
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x40a9f0
mov edi, dword [esp + 0x40]
push edi
mov ecx, esi
call fcn.00403570
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret