Function at 0x4193f0
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594626
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x380
mov eax, dword [0x5de00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x380], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x37c], 6
mov edi, SysReAllocString
jb 0x41975d
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41984f
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41950b
lea ecx, [ebp - 0x38c]
mov dword [ebp - 0x38c], 0
push ecx
push 0
push 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x4c5c32ff
push ecx
mov dword [ebp - 0x22c], 0x43b0bb9d
mov dword [ebp - 0x228], 0x722db4b5
mov dword [ebp - 0x224], 0xa4aa4ee5
call eax
test eax, eax
js 0x41950b
mov edx, dword [ebp - 0x38c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x384], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4194e0
sub ecx, dword [ebp - 0x384]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5def60
call fcn.004039f0
push dword [ebp - 0x38c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x5def70]
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x419935
cmp dword [0x5def74], 8
mov eax, 0x5def60
push 1
cmovae eax, dword [0x5def60]
push 0x5aaa60
push ecx
push eax
push ecx
push dword [ebp - 0x384]
lea ecx, [ebp - 0x238]
call fcn.00403e90
push 0x5e46e0
lea edx, [ebp - 0x238]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.0040b540
mov esi, eax
add esp, 4
cmp esi, 0x5def60
je 0x41960b
mov edx, dword [0x5def74]
cmp edx, 8
jb 0x4195cb
mov ecx, dword [0x5def60]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x4195c1
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x384], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x41965a
mov ecx, dword [ebp - 0x384]
push edx
push ecx
call fcn.0052d747
add esp, 8
mov dword [0x5def70], 0
xor eax, eax
mov dword [0x5def74], 7
mov word [0x5def60], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5def60], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5def70], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
call fcn.00403990
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00403990
cmp dword [0x5def74], 8
mov eax, 0x5def60
cmovae eax, dword [0x5def60]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
mov ecx, dword [0x5def70]
mov eax, edi
sub eax, ecx
add esp, 4
cmp eax, 1
jb 0x41993a
jmp 0x419660
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [0x5def74], 8
mov eax, 0x5def60
push 1
cmovae eax, dword [0x5def60]
push 0x5aaa60
push ecx
push eax
push ecx
push dword [ebp - 0x384]
lea ecx, [ebp - 0x238]
call fcn.00403e90
push 0x5e4730
lea edx, [ebp - 0x238]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.0040b540
mov esi, eax
add esp, 4
cmp esi, 0x5def60
je 0x419746
mov edx, dword [0x5def74]
cmp edx, 8
jb 0x419706
mov ecx, dword [0x5def60]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x4196fc
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x384], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x41965a
mov ecx, dword [ebp - 0x384]
push edx
push ecx
call fcn.0052d747
add esp, 8
mov dword [0x5def70], 0
xor eax, eax
mov dword [0x5def74], 7
mov word [0x5def60], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5def60], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5def70], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
call fcn.00403990
mov dword [ebp - 4], 0xffffffff
jmp 0x419827
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419780
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5def60
call fcn.004039f0
mov ecx, dword [0x5def70]
mov eax, edi
sub eax, ecx
cmp eax, 9
jb 0x41993f
cmp dword [0x5def74], 8
mov eax, 0x5def60
push 9
cmovae eax, dword [0x5def60]
push str._savedata
push ecx
push eax
push ecx
push dword [ebp - 0x384]
lea ecx, [ebp - 0x238]
call fcn.00403e90
mov ecx, 0x5def60
call fcn.00403990
movups xmm0, xmmword [ebp - 0x238]
xor eax, eax
mov word [ebp - 0x238], ax
movups xmmword [0x5def60], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [0x5def70], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
lea ecx, [ebp - 0x238]
call fcn.00403990
cmp dword [0x5def74], 8
mov eax, 0x5def60
cmovae eax, dword [0x5def60]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
mov ecx, dword [0x5e4740]
sub edi, ecx
cmp edi, 5
jb 0x419944
cmp dword [0x5e4744], 8
mov eax, 0x5e4730
push 5
cmovae eax, dword [0x5e4730]
push str.Save_
push ecx
push eax
push ecx
push dword [ebp - 0x384]
lea ecx, [ebp - 0x268]
call fcn.00403e90
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x268]
cmp dword [0x5e46f4], 8
mov eax, 0x5e46e0
push dword [0x5e46f0]
cmovae eax, dword [0x5e46e0]
push eax
call fcn.004083e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
mov ecx, 0x5deff0
movq qword [ebp - 0x388], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00403990
movups xmm0, xmmword [ebp - 0x230]
lea ecx, [ebp - 0x268]
movups xmmword [0x5deff0], xmm0
movq xmm0, qword [ebp - 0x388]
movq qword [0x5df000], xmm0
call fcn.00403990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d3c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402990
call fcn.00402990
call fcn.00402990
call fcn.00402990
int3