Function at 0x405dc0
Capabilities:
Check os version
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5655a2
mov eax, dword fs:[0]
push eax
sub esp, 0x3dc
mov eax, dword [0x5d51c0]
xor eax, esp
mov dword [esp + 0x3d4], eax
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, esp
push eax
lea eax, [esp + 0x3e8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
call fcn.004248f0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push 0x5ad338
call edi
push 0x44
movzx eax, ax
push 1
push eax
push dword [esi + 0x20]
mov dword [esi + 0x2b74], eax
mov esi, dword [sym.imp.USER32.dll_RegisterHotKey]
call esi
push str.CANCEL
call edi
mov edi, dword [esp + 0x1c]
push 0x43
movzx eax, ax
push 1
push eax
push dword [edi + 0x20]
mov dword [edi + 0x2b78], eax
call esi
push 0
mov dword [edi + 0x2abc], 0
mov dword [edi + 0x2ac0], 0
mov dword [edi + 0x2ac4], 0
mov dword [edi + 0x2ac8], 0
mov dword [edi + 0x2acc], 0
mov dword [edi + 0x2ad0], 0
mov dword [edi + 0x2ad4], 0
mov dword [edi + 0x2ad8], 0
mov dword [edi + 0x2adc], 0
mov dword [edi + 0x2ae0], 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042f7db
mov dword [esp + 0x18], eax
test eax, eax
je 0x405f76
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405eeb
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x65
mov dword [esp + 0x3f4], 0
call fcn.004202c9
test eax, eax
je 0x405f21
push 0x65
push eax
lea ecx, [esp + 0x1c]
call fcn.004053d0
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x405f51
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push dword [eax + 4]
call edi
mov eax, dword [esp + 0x18]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
mov edi, dword [esp + 0x1c]
add esi, 0xfffffff0
mov dword [esp + 0x3f0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405f76
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x98]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + 0x20]
call esi
push dword [edi + 0x9c]
push 0
push 0x80
push dword [edi + 0x20]
call esi
push 0x114
lea eax, [esp + 0xa0]
mov byte [edi + 0x2b58], 0
push 0
push eax
call fcn.0054cbf0
add esp, 0xc
mov dword [esp + 0x9c], 0x114
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0xa0]
cmp eax, 5
ja 0x405ff3
jne 0x405fef
cmp dword [esp + 0xa4], 1
jae 0x405ff3
xor eax, eax
jmp 0x405ff8
mov eax, 1
lea esi, [edi + 0x2b64]
mov dword [edi + 0x2b60], eax
push esi
push dword [edi + 0x2a58]
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
mov ecx, edi
call fcn.00430a21
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
push eax
push 0
push 0x130a
push dword [edi + 0x2a58]
movdqu xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov esi, dword [edi + 0x2b70]
add ecx, 4
mov edx, dword [edi + 0x2b6c]
sub esi, 3
mov eax, dword [edi + 0x2b64]
sub edx, 4
add ecx, dword [edi + 0x2b68]
add eax, 2
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], esi
movdqu xmm0, xmmword [esp + 0x1b4]
movdqu xmmword [edi + 0x2b64], xmm0
call fcn.0041f2b0
mov dword [edi + 0x2a18], eax
call fcn.004078a0
mov ecx, edi
mov byte [edi + 0x2a1c], al
call fcn.004087b0
mov ecx, edi
call fcn.00407aa0
cmp eax, 1
jle 0x40658a
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1dc], ax
lea eax, [esp + 0x1de]
push eax
call fcn.0054cbf0
add esp, 0xc
lea eax, [esp + 0x1d4]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.HncUserHncPrivacyUserdata.dat
lea eax, [esp + 0x1d8]
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
lea eax, [esp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [edi + 0x2ab0], 0
je 0x4063c4
mov dword [esp + 0x1b4], 1
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406152
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3f0], 1
call fcn.0041e8d0
test al, al
je 0x406260
push 0x271a
call fcn.004202c9
test eax, eax
je 0x40619b
push 0x271a
push eax
lea ecx, [esp + 0x1c]
call fcn.004053d0
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0xf24]
lea ecx, [edi + 0xf24]
push edi
push 0x88
mov dword [edi + 0x1124], 1
call dword [eax + 0x160]
mov ecx, dword [edi + 0x2b68]
mov eax, dword [edi + 0x2b70]
mov edx, dword [edi + 0x2b64]
sub eax, ecx
push 0
push eax
mov eax, dword [edi + 0x2b6c]
sub eax, edx
push eax
push ecx
push edx
lea ecx, [edi + 0xf24]
call fcn.0042ec68
push 5
lea ecx, [edi + 0xf24]
call fcn.0042eee4
cmp dword [esi - 4], 1
jle 0x40620d
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.00405590
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c0], esi
push dword [esi - 8]
push esi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x4063ba
cmp eax, dword [esi - 8]
jg 0x4063ba
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esp + 0x1b4]
push eax
push ecx
push 0x133e
push dword [edi + 0x2a58]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi + 0xf24]
mov dword [edi + 0x2abc], eax
push 0x2719
call fcn.004202c9
test eax, eax
je 0x406281
push 0x2719
push eax
lea ecx, [esp + 0x1c]
call fcn.004053d0
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x115c]
lea ecx, [edi + 0x115c]
push edi
push 0x9a
call dword [eax + 0x160]
mov ecx, dword [edi + 0x2b68]
mov eax, dword [edi + 0x2b70]
mov edx, dword [edi + 0x2b64]
sub eax, ecx
push 0
push eax
mov eax, dword [edi + 0x2b6c]
sub eax, edx
push eax
push ecx
push edx
lea ecx, [edi + 0x115c]
call fcn.0042ec68
push 0
lea ecx, [edi + 0x115c]
call fcn.0042eee4
cmp dword [esi - 4], 1
jle 0x4062e9
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.00405590
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c0], esi
push dword [esi - 8]
push esi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x4063ba
cmp eax, dword [esi - 8]
jg 0x4063ba
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esp + 0x1b4]
push eax
push 1
push 0x133e
push dword [edi + 0x2a58]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi + 0x115c]
lea ecx, [edi + 0x28fc]
mov dword [edi + 0x2ac0], eax
mov eax, dword [ecx]
push edi
push 0x82
call dword [eax + 0x160]
mov edx, dword [edi + 0x2b68]
lea ecx, [edi + 0x2b64]
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
sub eax, edx
push 0
push eax
mov eax, dword [ecx + 8]
sub eax, edi
push eax
push edx
push edi
mov edi, dword [esp + 0x30]
lea ecx, [edi + 0x28fc]
call fcn.0042ec68
push 0
lea ecx, [edi + 0x28fc]
call fcn.0042eee4
add esi, 0xfffffff0
mov dword [esp + 0x3f0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4063b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x406759
push 0x80070057
call fcn.00405730
cmp byte [edi + 0x2ab8], 1
jne 0x40658a
mov dword [esp + 0x1b4], 1
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4063f8
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x274d
mov dword [esp + 0x3f4], 2
call fcn.004202c9
test eax, eax
je 0x406434
push 0x274d
push eax
lea ecx, [esp + 0x1c]
call fcn.004053d0
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x20e4]
lea ecx, [edi + 0x20e4]
push edi
push 0x274c
mov dword [esp + 0x20], ecx
call dword [eax + 0x160]
mov ecx, dword [edi + 0x2b68]
mov eax, dword [edi + 0x2b70]
mov edx, dword [edi + 0x2b64]
sub eax, ecx
push 0
push eax
mov eax, dword [edi + 0x2b6c]
sub eax, edx
push eax
push ecx
push edx
lea ecx, [edi + 0x20e4]
call fcn.0042ec68
push 5
lea ecx, [edi + 0x20e4]
call fcn.0042eee4
cmp dword [esi - 4], 1
jle 0x4064a0
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.00405590
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c0], esi
push dword [esi - 8]
push esi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x4063ba
cmp eax, dword [esi - 8]
jg 0x4063ba
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esp + 0x1b4]
push eax
push ecx
push 0x133e
push dword [edi + 0x2a58]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi + 0x20e4]
lea ecx, [edi + 0x28fc]
mov dword [edi + 0x2abc], eax
mov eax, dword [ecx]
push edi
push 0x82
call dword [eax + 0x160]
mov edx, dword [edi + 0x2b68]
lea ecx, [edi + 0x2b64]
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
sub eax, edx
push 0
push eax
mov eax, dword [ecx + 8]
sub eax, edi
push eax
push edx
push edi
mov edi, dword [esp + 0x30]
lea ecx, [edi + 0x28fc]
call fcn.0042ec68
push 0
lea ecx, [edi + 0x28fc]
call fcn.0042eee4
mov ecx, dword [esp + 0x18]
push 0x2750
call fcn.0042e5d4
push 1
push dword [eax + 0x20]
mov eax, edi
push 0x28
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0xfffffff0
mov dword [esp + 0x3f0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406757
mov ecx, dword [esi]
push esi
jmp 0x406752
push 0
lea ecx, [edi + 0x2a38]
call fcn.0042eee4
mov ecx, edi
call fcn.00407390
push 0
lea ecx, [edi + 0x29a0]
call fcn.0042e4a6
cmp byte [edi + 0x2ab1], 1
jne 0x4065bf
lea ecx, [edi + 0xa0]
call fcn.00409730
push 0x5ad394
lea ecx, [esp + 0x24]
call fcn.004058d0
mov dword [esp + 0x3f0], 3
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00408c80
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3f4], 4
call fcn.00409360
mov byte [esp + 0x3f0], 3
or ecx, 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406632
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [esp + 0x1b4], 1
mov dword [esp + 0x1b8], 2
mov dword [esp + 0x1bc], 0x3ff
mov dword [esp + 0x18], esi
lea esp, [esp]
push 0x5c
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0054cbf0
mov esi, dword [esp + esi*4 + 0x1c0]
add esp, 0xc
mov ecx, edi
push esi
call fcn.0042e5d4
push 0
push 0
push 0x31
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0043062c
lea ecx, [esp + 0x3c]
push ecx
push 0x5c
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CFont.0
lea eax, [esp + 0x3c]
mov byte [esp + 0x3f0], 5
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x28]
call fcn.004303b3
push esi
mov ecx, edi
call fcn.0042e5d4
push 1
push dword [esp + 0x2c]
push 0x30
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x24]
call fcn.0043052e
mov byte [esp + 0x3f0], 3
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CFont.0
call fcn.00409160
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, 3
jl 0x406660
mov dword [esp + 0x3f0], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x3e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3d4]
xor ecx, esp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret