Function at 0x413860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e229
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 3
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp esi, edi
je 0x413c44
nop dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0x5a3e2c
call fcn.00404e80
mov byte [ebp - 4], 4
mov ebx, dword [ebp + 0x1c]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x150], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4138ea
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x4138fc
cmp ecx, dword [ebx]
jne 0x4138fc
lock inc dword [eax]
jmp 0x413940
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x130], eax
test eax, eax
je 0x413d32
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x130]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x150]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 5
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x140], esp
mov dword [ebp - 0x154], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413972
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x413984
cmp ecx, dword [ebx]
jne 0x413984
lock inc dword [eax]
jmp 0x4139c8
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x130], eax
test eax, eax
je 0x413d32
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x130]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x154]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 6
mov eax, dword [esi]
lea ebx, [eax - 0x10]
mov dword [ebp - 0x138], eax
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x14c], esp
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4139f9
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x413a0b
cmp ecx, dword [ebx]
jne 0x413a0b
lock inc dword [eax]
jmp 0x413a53
lea eax, [ebx + 4]
push 2
push dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x413d32
mov edx, dword [ebp - 0x130]
mov ecx, dword [edx]
mov dword [ebx + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x138]
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x14c]
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x13c]
mov dword [ecx], eax
mov ecx, SysReAllocStringLen
mov byte [ebp - 4], 3
call fcn.004148c0
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x5a3e2c
call fcn.00404e80
mov byte [ebp - 4], 7
mov ebx, dword [ebp + 0x1c]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x158], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413aae
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x413ac0
cmp ecx, dword [ebx]
jne 0x413ac0
lock inc dword [eax]
jmp 0x413b04
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x413d32
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x138]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x158]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 8
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
push ecx
mov dword [ebp - 0x144], esp
mov dword [ebp - 0x15c], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413b36
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x413b48
cmp ecx, dword [ebx]
jne 0x413b48
lock inc dword [eax]
jmp 0x413b8c
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x413d32
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 4]
mov ebx, dword [ebp - 0x138]
lea ecx, [edx*2 + 2]
push ecx
push eax
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x15c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov eax, dword [esi]
lea ebx, [eax - 0x10]
mov dword [ebp - 0x130], eax
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x134], esp
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413bbd
call dword [eax + 0x10]
mov ecx, eax
cmp dword [ebx + 0xc], 0
lea eax, [ebx + 0xc]
jl 0x413bcf
cmp ecx, dword [ebx]
jne 0x413bcf
lock inc dword [eax]
jmp 0x413c17
lea eax, [ebx + 4]
push 2
push dword [eax]
mov dword [ebp - 0x138], eax
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x413d32
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx]
mov dword [ebx + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x130]
lea edx, [edx*2 + 2]
lea ecx, [ebx + 0x10]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x134]
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x13c]
mov dword [ecx], eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
call fcn.004148c0
add esi, 4
add esp, 0x10
cmp esi, edi
jne 0x4138b0
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00526bd0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x12c]
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
or ebx, 0xffffffff
cmp dword [ebp - 0x128], 0xa
je 0x413ccf
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00526bd0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call esi
cmp dword [ebp - 0x128], 6
jne 0x414047
mov eax, dword [ebp - 0x124]
cmp eax, 2
je 0x413ccf
cmp eax, 3
jne 0x414047
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x5a3e2c
call fcn.00404e80
push dword [ebp - 0x13c]
mov byte [ebp - 4], 0xa
mov esi, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x134], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413d0d
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x413d23
cmp ecx, dword [esi - 0x10]
jne 0x413d23
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x413d5b
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x413d37
call fcn.00405700
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 0xb
mov esi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x134], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413d85
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x413d9b
cmp ecx, dword [esi - 0x10]
jne 0x413d9b
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x413dd3
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x413daf
call fcn.00405700
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00406950
add esp, 8
mov edx, dword [ebp - 0x134]
lea eax, [edi + 0x10]
mov ecx, SysReAllocStringLen
mov dword [edx], eax
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00410360
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x5a3e2c
call fcn.00404e80
push dword [ebp - 0x13c]
mov byte [ebp - 4], 0xc
mov esi, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x148], esp
mov dword [ebp - 0x134], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413e2f
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x413e45
cmp ecx, dword [esi - 0x10]
jne 0x413e45
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x413e7d
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x413e59
call fcn.00405700
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00406950
add esp, 8
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 0xd
mov esi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x134], esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x413ea7
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x413ebd
cmp ecx, dword [esi - 0x10]
jne 0x413ebd
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x413ef5
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x413ed1
call fcn.00405700
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.00406950
add esp, 8
mov edx, dword [ebp - 0x134]
lea eax, [edi + 0x10]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [edx], eax
lea edx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00410360
lea eax, [ebp + 0xc]
mov edx, str.MasterPDF_
push eax
lea ecx, [ebp - 0x130]
call fcn.0041c710
add esp, 0x14
mov byte [ebp - 4], 0xe
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp esi, edi
je 0x413fbb
nop word [eax + eax]
mov ebx, dword [ebp - 0x130]
cmp dword [ebx - 4], 1
jle 0x413f60
push dword [ebx - 0xc]
lea ecx, [ebp - 0x130]
call fcn.00405b80
mov ebx, dword [ebp - 0x130]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x413f72
push dword [eax - 0xc]
mov ecx, esi
call fcn.00405b80
mov ecx, dword [esi]
mov edx, ebx
call fcn.00412ae0
mov eax, dword [esi]
test eax, eax
jne 0x413f85
xor ecx, ecx
jmp 0x413f9b
push dword [eax - 8]
push eax
call fcn.005434e1
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x414033
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x414033
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
add esi, 4
mov word [eax + ecx*2], dx
cmp esi, edi
jne 0x413f40
or ebx, 0xffffffff
mov eax, dword [ebp - 0x130]
push dword [eax - 8]
push eax
call fcn.005434e1
mov edx, eax
add esp, 8
test edx, edx
js 0x414033
mov ecx, dword [ebp - 0x130]
cmp edx, dword [ecx - 8]
jg 0x414033
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 3
mov word [eax + edx*2], cx
mov eax, ebx
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x414041
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41403d
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41403d
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call edi
jmp 0x414047
push 0x80070057
call fcn.004071e0
mov ecx, edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41409c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x414098
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x414098
push 0
push dword [edx + 4]
call edi
jmp 0x41409c
mov ecx, edx
call esi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4140dd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4140d9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4140d9
push 0
push dword [edx + 4]
call edi
jmp 0x4140dd
mov ecx, edx
call esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41416b
push dword [ebp - 0x140]
mov edx, dword [ebp + 0x14]
push ecx
call fcn.00422940
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x414115
call fcn.00531451
shl eax, 2
cmp eax, 0x1000
jb 0x41414d
test cl, 0x1f
je 0x414129
call fcn.00531451
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x414135
call fcn.00531451
sub ecx, eax
cmp ecx, 4
jae 0x414141
call fcn.00531451
cmp ecx, 0x23
jbe 0x41414b
call fcn.00531451
mov ecx, eax
push ecx
call fcn.005221dc
add esp, 4
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4141ad
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4141a9
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4141a9
push 0
push dword [edx + 4]
call edi
jmp 0x4141ad
mov ecx, edx
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret