Function at 0x40a0b0
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42a388
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
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 [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
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 0x40a15e
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 0x40a200
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a200
mov ebx, dword [eax + 0x18]
lea eax, [esp + 0x14]
call fcn.00403710
mov ecx, dword [esp + 0x18]
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov esi, dword [esp + 0x14]
jmp 0x40a200
cmp eax, 1
jne 0x40a200
push 5
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.004030b0
lea eax, [esp + 0x28]
push eax
call fcn.0040ac30
add esp, 0xc
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40a1db
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x40a1ca
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40a1ca
call fcn.00403a60
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40a1c1
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 0x40a1db
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004039d0
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 0x40a200
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jle 0x40a32b
push 0x2e
push esi
call fcn.0041a86b
add esp, 8
test eax, eax
jne 0x40a21e
or eax, 0xffffffff
jmp 0x40a220
sub eax, esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0040e210
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40a280
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40a273
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a273
call fcn.00403a60
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a26a
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 0x40a280
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004039d0
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 0x40a2a5
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.0040e020
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
call fcn.00403160
mov byte [esp + 0x38], 3
mov edx, dword [eax]
lea ecx, [esp + 0x28]
call fcn.00416e50
mov byte [esp + 0x38], 4
mov ebx, dword [eax]
lea eax, [esp + 0x14]
call fcn.00403710
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 0x40a302
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 0x40a327
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 0x40a344
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x40a110
mov edi, dword [esp + 0x40]
push edi
mov ecx, esi
call fcn.00403160
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 0x40a374
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