Function at 0x401996
Capabilities:
Check os version
Create directory
Create process on windows
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x22b]
push ebx
push eax
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x22c], bl
call fcn.004017c2
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x104
push edi
lea eax, [ebp - 0x374]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [ebp - 0x374]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x408], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x404], 4
jne 0x401a5b
cmp dword [ebp - 0x400], 0xa
jae 0x401a5b
push 0x10
lea eax, [ebp - 0x374]
push eax
push str.OS_Windows_95_is_not_supported.
push dword [0x40c060]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x401d4f
push ebx
push 0x40189c
push ebx
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x374]
push ecx
push eax
mov dword [0x40c060], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x128]
push 0x407220
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401a97
push edi
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 8]
push eax
push 0x401948
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 8], ebx
call fcn.0040129f
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
add esp, 0x10
cmp eax, ebx
je 0x401b43
cmp eax, 1
je 0x401c4c
push dword [ebp - 8]
push eax
push str.Unpacking_has_failed._The_file_is_corrupted.
lea eax, [ebp - 0x610]
push str._s_r_nUnpack_error___i__i_.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x10
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x610]
push eax
push dword [0x40c060]
jmp 0x401c46
push dword [0x40c060]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x40c060], ebx
call fcn.00401829
push str.jp2lt.exe
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x374]
push eax
push str.litename
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x610]
push str.__s____s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.004017c2
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x610]
push eax
push ebx
mov dword [ebp - 0x270], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bf2
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push edi
lea ecx, [ebp - 0x128]
push ecx
push 0x400
push eax
push ebx
push 0x1200
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x610]
push str.Process_could_not_be_started._r_n__i___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x10
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x610]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40c060]
cmp eax, ebx
je 0x401c62
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x40c060], ebx
cmp byte [ebp - 0x22c], bl
je 0x401d4c
mov edi, str.Puzzles
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
push str..pzl
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x128]
push eax
push ebx
xor al, al
call fcn.004018cb
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x128]
push eax
call edi
push str.ExFiles
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
push 0x407168
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x128]
push eax
push ebx
mov al, 1
call fcn.004018cb
pop ecx
pop ecx
push str.ExFiles
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x128]
push eax
call edi
push 0x407168
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x128]
push eax
push ebx
xor al, al
call fcn.004018cb
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10