Function at 0x40a990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a12c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x43b14c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb4]
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0xac], esi
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xac], 1
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xac], 2
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xac], 3
mov dword [esp + 0x34], str.https:__dns.alidns.com_resolve_name_stype_d
mov dword [esp + 0x38], str.http:__dns.alidns.com_resolve_name_stype_d
mov dword [esp + 0x3c], str.https:__223.5.5.5_resolve_name_stype_d
mov dword [esp + 0x40], str.http:__223.5.5.5_resolve_name_stype_d
mov dword [esp + 0x24], esi
jmp 0x40aa70
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + esi*4 + 0x34]
push ecx
push edx
push eax
lea edi, [esp + 0x2c]
call fcn.004016c0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x30]
call fcn.0040a640
add esp, 4
mov byte [esp + 0xac], 4
mov ebx, dword [eax]
lea eax, [esp + 0x18]
call fcn.004030d0
mov byte [esp + 0xac], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aadd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jle 0x40acbf
lea ecx, [esp + 0x44]
push ecx
call fcn.00405e20
mov byte [esp + 0xac], 5
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 0xc]
jle 0x40ab17
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00403760
mov ebx, dword [esp + 0x18]
mov eax, esi
mov edi, ebx
lea edx, [esp + 0x44]
call fcn.00405e90
test eax, eax
je 0x40aca6
push str.Answer
lea esi, [esp + 0x48]
call fcn.00405f10
cmp dword [eax], 0
jne 0x40ab58
mov ecx, dword [eax + 0x50]
sub ecx, dword [eax + 0x4c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
jmp 0x40ab5a
xor ebp, ebp
xor edi, edi
test ebp, ebp
jle 0x40aca6
xor ebx, ebx
mov dword [esp + 0x28], ebx
lea ebx, [ebx]
push str.Answer
lea esi, [esp + 0x48]
call fcn.00405f10
mov esi, eax
cmp dword [esi], 0
jne 0x40abcb
test edi, edi
jl 0x40abcb
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x40abcb
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40abc4
call fcn.00419b4a
mov esi, dword [esi + 0x4c]
add esi, ebx
jmp 0x40abd0
mov esi, 0x4420e0
push str.type
call fcn.00405f10
cmp dword [eax], 2
jne 0x40abe9
fld qword [eax + 0x38]
call fcn.00429070
jmp 0x40abeb
xor eax, eax
cmp eax, dword [esp + 0xbc]
jne 0x40ac92
push str.Answer
lea esi, [esp + 0x48]
call fcn.00405f10
mov esi, eax
cmp dword [esi], 0
jne 0x40ac53
test edi, edi
jl 0x40ac53
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x40ac53
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40ac4c
call fcn.00419b4a
mov esi, dword [esi + 0x4c]
add esi, ebx
jmp 0x40ac58
mov esi, 0x4420e0
push str.data
call fcn.00405f10
cmp dword [eax], 3
jne 0x40ac77
cmp dword [eax + 0x34], 0x10
jb 0x40ac72
mov eax, dword [eax + 0x20]
jmp 0x40ac79
add eax, 0x20
jmp 0x40ac79
xor eax, eax
mov ebx, eax
lea eax, [esp + 0x1c]
call fcn.004032a0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jg 0x40aca2
mov ebx, dword [esp + 0x28]
inc edi
add ebx, 0x58
cmp edi, ebp
mov dword [esp + 0x28], ebx
jl 0x40ab70
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 3
call fcn.00401ed0
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jg 0x40acd3
inc esi
mov dword [esp + 0x24], esi
cmp esi, 4
jb 0x40aa70
mov esi, dword [esp + 0x30]
push esi
mov ecx, ebp
call fcn.00403020
mov byte [esp + 0xac], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xac], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418df4
add esp, 0x9c
ret