Function at 0x409e10
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42a188
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 0x409ebe
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 0x409f60
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409f60
mov ebx, dword [eax + 0x18]
lea eax, [esp + 0x14]
call fcn.004030d0
mov ecx, dword [esp + 0x18]
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov esi, dword [esp + 0x14]
jmp 0x409f60
cmp eax, 1
jne 0x409f60
push 5
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, ebp
call fcn.00403160
lea eax, [esp + 0x28]
push eax
call fcn.0040a990
add esp, 0xc
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x409f3b
cmp dword [edi + 0xc], ebx
lea esi, [edi + 0xc]
jl 0x409f2a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x409f2a
call fcn.004039d0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x409f21
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 0x409f3b
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403930
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 0x409f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jle 0x40a08b
push 0x2e
push esi
call fcn.0041a60b
add esp, 8
test eax, eax
jne 0x409f7e
or eax, 0xffffffff
jmp 0x409f80
sub eax, esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0040e040
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x409fe0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x409fd3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409fd3
call fcn.004039d0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x409fca
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 0x409fe0
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403930
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 0x40a005
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.0040de50
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
call fcn.00403210
mov byte [esp + 0x38], 3
mov edx, dword [eax]
lea ecx, [esp + 0x28]
call fcn.00416c10
mov byte [esp + 0x38], 4
mov ebx, dword [eax]
lea eax, [esp + 0x14]
call fcn.004030d0
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 0x40a062
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 0x40a087
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 0x40a0a4
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x409e70
mov edi, dword [esp + 0x40]
push edi
mov ecx, esi
call fcn.00403210
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 0x40a0d4
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