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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ae28
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x493350]
xor eax, esp
mov dword [esp + 0x3d8], eax
push ebx
push esi
push edi
mov eax, dword [0x493350]
xor eax, esp
push eax
lea eax, [esp + 0x3f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
push 0x476151
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
call fcn.00406ce0
cmp byte [ebp + 0x18], 0
mov dword [esp + 0x3f8], esi
je 0x432991
push str.CruRev
lea ecx, [esp + 0x90]
call fcn.00406d80
push str.Shell32.dll
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x4329b8
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x24], eax
push 0x110
lea eax, [esp + 0xcc]
push esi
push eax
mov byte [esp + 0x404], 1
call fcn.00450ab0
add esp, 0xc
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0xc8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc8], 6
jb 0x432c21
mov eax, dword [ebp + 0xc]
cmp eax, 8
ja case.default.0x432a05
jmp dword [eax*4 + 0x432db6]
mov esi, 0x4743bc
jmp 0x432a42
mov esi, 0x4743cc
jmp 0x432a42
mov esi, 0x47439c
jmp 0x432a42
mov esi, 0x47437c
jmp 0x432a42
mov esi, 0x4743dc
jmp 0x432a42
mov esi, 0x47438c
jmp 0x432a42
mov esi, 0x47436c
jmp 0x432a42
mov esi, 0x4743ac
lea edi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x24], esi
je 0x432c21
lea eax, [esp + 0x18]
push eax
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
push esi
and eax, 0x8000
push eax
lea eax, [esp + 0x7c]
push eax
call dword [esp + 0x34]
cmp eax, 0x80004001
je 0x432c21
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
call fcn.0040ece0
mov byte [esp + 0x3f8], 2
cmp dword [esp + 0xa4], 0x10
mov eax, dword [esp + 0x90]
jae 0x432ab0
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x18]
call fcn.0040ee10
push 0x47c9c8
call fcn.0040ee10
cmp byte [ebp + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x432b25
push 0
push dword [esp + 0x18]
call ebx
test eax, eax
jne 0x432b25
call edi
cmp eax, 0xb7
je 0x432b25
call edi
push eax
push dword [esp + 0x18]
lea esi, [esp + 0x34]
push str.Failed_to_create_directory__S__error_d
call fcn.004318ef
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x400], 3
call fcn.00401340
push 0x486be4
lea eax, [esp + 0x4c]
push eax
call fcn.00450dab
cmp dword [esp + 0x20], 0
je 0x432b8a
push dword [esp + 0x20]
lea esi, [esp + 0x18]
call fcn.0040ee10
cmp byte [ebp + 0x10], 0
je 0x432b8a
push 0
push dword [esp + 0x18]
call ebx
test eax, eax
jne 0x432b8a
call edi
cmp eax, 0xb7
je 0x432b8a
call edi
push eax
push dword [esp + 0x18]
lea esi, [esp + 0x34]
push str.Failed_to_create_subdirectory__S__error_d
call fcn.004318ef
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x400], 4
call fcn.00401340
push 0x486be4
lea eax, [esp + 0x4c]
jmp 0x432b1f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
call fcn.0040ece0
mov byte [esp + 0x3f8], 5
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
lea ecx, [eax + 1]
lea esi, [esp + 0x10]
call fcn.0040c4e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
call fcn.0040eec0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
call fcn.00406dd0
mov eax, esi
call fcn.0040c440
lea eax, [esp + 0x14]
call fcn.0040c440
cmp dword [esp + 0x28], 0
je 0x432bed
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x8c]
call fcn.00406d50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d8]
xor ecx, esp
call fcn.0044cced
mov esp, ebp
pop ebp
ret
movzx ebx, byte [ebp + 0x10]
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x8c]
lea edi, [esp + 0xa8]
and ebx, 0x8000
call fcn.00431734
mov byte [esp + 0x3f8], 6
cmp dword [esp + 0x20], esi
je 0x432ca3
push dword [esp + 0x20]
lea ecx, [esp + 0x74]
call fcn.00406ce0
lea ecx, [esp + 0x70]
lea edi, [esp + 0x2c]
mov byte [esp + 0x3f8], 7
call fcn.00431734
push esi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xb0]
mov byte [esp + 0x400], 8
call fcn.00407ed0
mov esi, edi
call fcn.00406e40
lea ecx, [esp + 0x70]
mov byte [esp + 0x3f8], 6
call fcn.00406d50
mov eax, dword [ebp + 0xc]
cmp eax, 8
ja case.0x432cab.7
jmp dword [eax*4 + 0x432dda]
push 0x1c
pop eax
jmp 0x432cd3
push 0x23
jmp 0x432cb4
push 2
jmp 0x432cb4
push 0x17
jmp 0x432cb4
push 0x26
jmp 0x432cb4
xor eax, eax
jmp 0x432cd3
push 0x1a
jmp 0x432cb4
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xc0], 8
mov ecx, dword [esp + 0xac]
jae 0x432ceb
lea ecx, [esp + 0xac]
lea edx, [esp + 0x1dc]
push edx
push ecx
xor esi, esi
push esi
push esi
or eax, ebx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, esi
jne 0x432d82
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x1e0]
call fcn.0040ece0
lea eax, [esp + 0x10]
mov byte [esp + 0x3f8], 9
mov ecx, dword [esp + 0x18]
push eax
call fcn.0040ece0
mov byte [esp + 0x3f8], 0xa
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
lea ecx, [eax + 1]
lea esi, [esp + 0x10]
call fcn.0040c4e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
call fcn.0040eec0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
call fcn.00406dd0
mov eax, esi
call fcn.0040c440
lea eax, [esp + 0x18]
call fcn.0040c440
lea esi, [esp + 0xa8]
call fcn.00406e40
jmp 0x432bdc
push eax
push str.Bad_result_from_SHGetFolderPathAndSubDirW_d
lea esi, [esp + 0x34]
call fcn.004318ef
pop ecx
pop ecx
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x400], 0xb
call fcn.00401340
push 0x486be4
lea eax, [esp + 0x4c]
jmp 0x432b1f