Function at 0x40110b
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov al, byte [0x40caf4]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x254], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x253]
or dword [ebp - 8], 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3c]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x38], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x104
lea eax, [ebp - 0x39c]
push edi
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea eax, [ebp - 0x254]
push eax
call fcn.00401aae
test al, al
pop ecx
je 0x401673
lea eax, [ebp - 0x254]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 0x4017b7
push ebx
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x39c]
mov dword [0x40c2ec], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push str.Preparing...
push 0x3e8
push dword [0x40c2ec]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
call esi
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x140]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x40166b
push edi
call fcn.004018ee
test al, al
pop ecx
je 0x40166b
lea eax, [ebp - 0x140]
push eax
call fcn.00401c0f
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00401881
add esp, 0xc
test al, al
je 0x40166b
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0xc]
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00401b19
add esp, 0xc
test al, al
je 0x40166b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x140]
push eax
call esi
cmp dword [ebp + 8], ebx
jne 0x40166b
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x30]
jne 0x40166b
push ebx
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.004018a2
test al, al
pop ecx
je 0x40166b
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00401881
pop ecx
test al, al
pop ecx
je 0x40166b
push edi
call fcn.004018ee
test al, al
pop ecx
je 0x40166b
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00401881
pop ecx
test al, al
pop ecx
je 0x40166b
lea eax, [ebp - 0x140]
push eax
call fcn.00401c0f
pop ecx
push ebx
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00401b19
add esp, 0xc
test al, al
je 0x40166b
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00401c43
pop ecx
test al, al
pop ecx
je 0x40166b
lea eax, [ebp - 0x140]
push eax
call esi
push edi
call fcn.004018a2
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x254]
mov dword [esp], str.puzzles
push eax
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0x140]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp + 8], 1
call fcn.00401752
test al, al
je 0x4015b4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004019ed
add esp, 0xc
test al, al
je 0x4015b4
mov eax, dword [ebp - 0x20]
dec eax
je 0x401591
dec eax
je 0x401582
dec eax
je 0x401432
dec eax
je 0x4013e4
push 1
push ebx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x401398
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5a4]
push eax
push dword [ebp - 0x10]
push edi
call fcn.00401a35
add esp, 0x10
test al, al
je 0x40167c
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x140]
push eax
call esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x140]
push eax
push edi
call fcn.00401b19
add esp, 0xc
jmp 0x4015a7
cmp dword [ebp - 0x18], 0xffffffff
je 0x40167c
cmp dword [ebp - 0x14], 0xffffffff
je 0x40167c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x10]
push edi
call fcn.00401a35
add esp, 0x10
test al, al
je 0x40167c
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x4a0]
push dword [ebp - 0x14]
push eax
call fcn.00401819
add esp, 0xc
lea eax, [ebp - 0x140]
push dword [ebp - 0x18]
push dword [ebp + 8]
push str.Unpack__i__i
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push 0x3e8
push dword [0x40c2ec]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x40167c
mov byte [eax], bl
push 1
inc eax
pop edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x254]
push str.puzzles
push eax
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp edi, 1
jle 0x401521
push edi
lea eax, [ebp - 0x140]
push 0x40c068
push eax
call fcn.0040100f
pop ecx
lea eax, [ebp + eax - 0x140]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x140]
push 0x40c064
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014cf
push dword [ebp - 0x34]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 8]
call fcn.00401b19
add esp, 0xc
test al, al
je 0x401679
inc dword [ebp + 8]
mov edi, dword [ebp - 8]
jmp 0x401398
cmp dword [ebp - 0x10], 4
jne 0x40167c
lea eax, [ebp - 0x14]
jmp 0x40159e
cmp dword [ebp - 0x10], 4
jne 0x40167c
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004019c3
pop ecx
pop ecx
test al, al
je 0x40167c
jmp 0x401398
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x40c2ec]
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [0x40caf0], bl
mov dword [0x40c2ec], ebx
jne 0x4016b9
lea eax, [ebp - 0x254]
push str.jp2lt.exe
push eax
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0x39c]
mov edi, 0x40c2f0
push eax
lea eax, [ebp - 0x140]
push str.litename
push eax
push str.__s____s___s_
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.00401042
add esp, 0x20
lea eax, [ebp - 0x150]
mov dword [ebp - 0x298], 0x44
push eax
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401679
push 0xffffffffffffffff
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
jmp 0x401679
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x40167c
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov edi, dword [ebp - 8]
mov eax, dword [0x40c2ec]
cmp eax, ebx
je 0x40168c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp edi, ebx
je 0x401697
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x40caf0], bl
jne 0x4016b9
cmp byte [ebp - 1], bl
jne 0x4016b9
lea eax, [ebp - 0x39c]
push 0x10
push eax
push str.Unpacking_has_failed._The_file_is_corrupted.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [ebp - 0x254], bl
je 0x401749
mov edi, str.puzzles
lea eax, [ebp - 0x254]
push edi
push eax
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0x140]
push str..pzl
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x140]
push eax
push ebx
call fcn.00401df2
pop ecx
lea eax, [ebp - 0x254]
pop ecx
push edi
push eax
lea eax, [ebp - 0x140]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x140]
push eax
call edi
lea eax, [ebp - 0x254]
push section..data
push eax
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0x140]
push eax
push ebx
call fcn.00401df2
pop ecx
lea eax, [ebp - 0x254]
pop ecx
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10