Function at 0x40b510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42940c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x43a14c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43a14c]
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 [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xac], 1
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xac], 2
mov edx, dword [0x44030c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44030c
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 0x40b5f0
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.0040b1c0
add esp, 4
mov byte [esp + 0xac], 4
mov ebx, dword [eax]
lea eax, [esp + 0x18]
call fcn.00403b60
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 0x40b65d
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 0x40b83f
lea ecx, [esp + 0x44]
push ecx
call fcn.004068d0
mov byte [esp + 0xac], 5
cmp dword [ebx - 4], 1
mov esi, dword [ebx - 0xc]
jle 0x40b697
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00403c10
mov ebx, dword [esp + 0x18]
mov eax, esi
mov edi, ebx
lea edx, [esp + 0x44]
call fcn.00406940
test eax, eax
je 0x40b826
push str.Answer
lea esi, [esp + 0x48]
call fcn.004069c0
cmp dword [eax], 0
jne 0x40b6d8
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 0x40b6da
xor ebp, ebp
xor edi, edi
test ebp, ebp
jle 0x40b826
xor ebx, ebx
mov dword [esp + 0x28], ebx
lea ebx, [ebx]
push str.Answer
lea esi, [esp + 0x48]
call fcn.004069c0
mov esi, eax
cmp dword [esi], 0
jne 0x40b74b
test edi, edi
jl 0x40b74b
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 0x40b74b
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 0x40b744
call fcn.00418f81
mov esi, dword [esi + 0x4c]
add esi, ebx
jmp 0x40b750
mov esi, 0x4410e0
push str.type
call fcn.004069c0
cmp dword [eax], 2
jne 0x40b769
fld qword [eax + 0x38]
call fcn.004283e0
jmp 0x40b76b
xor eax, eax
cmp eax, dword [esp + 0xbc]
jne 0x40b812
push str.Answer
lea esi, [esp + 0x48]
call fcn.004069c0
mov esi, eax
cmp dword [esi], 0
jne 0x40b7d3
test edi, edi
jl 0x40b7d3
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 0x40b7d3
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 0x40b7cc
call fcn.00418f81
mov esi, dword [esi + 0x4c]
add esi, ebx
jmp 0x40b7d8
mov esi, 0x4410e0
push str.data
call fcn.004069c0
cmp dword [eax], 3
jne 0x40b7f7
cmp dword [eax + 0x34], 0x10
jb 0x40b7f2
mov eax, dword [eax + 0x20]
jmp 0x40b7f9
add eax, 0x20
jmp 0x40b7f9
xor eax, eax
mov ebx, eax
lea eax, [esp + 0x1c]
call fcn.00403600
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jg 0x40b822
mov ebx, dword [esp + 0x28]
inc edi
add ebx, 0x58
cmp edi, ebp
mov dword [esp + 0x28], ebx
jl 0x40b6f0
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 3
call fcn.00401e40
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 0xc], 0
jg 0x40b853
inc esi
mov dword [esp + 0x24], esi
cmp esi, 4
jb 0x40b5f0
mov esi, dword [esp + 0x30]
push esi
mov ecx, ebp
call fcn.00403430
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 0x40b887
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 0x40b8ab
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 0x40b8cf
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 0x40b8fd
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.00418154
add esp, 0x9c
ret