Function at 0x401000
Capabilities:
Create directory
Create process on windows
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xae8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov eax, 0x4071e8
mov dword [0x407258], 0x406010
mov dword [0x4071e0], eax
push ebx
push eax
mov dword [0x4071e8], 0x84
mov dword [0x40724c], 0x300
call fcn.004015ac
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x4c4]
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x4c4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x4014a7
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push esi
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x4014a7
push ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x50]
push 0x2c
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x114
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 0x48], ebx
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jbe 0x4011ae
mov dword [ebp - 8], 0xfffffef8
lea edi, [eax + 0x108]
sub dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ebx
lea eax, [edi - 0x108]
push ecx
push 2
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
lea eax, [ebp - 0xc]
push ebx
push eax
movzx eax, word [edi - 0x108]
push eax
lea eax, [edi - 0x106]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, edi
push ebx
add eax, dword [ebp - 0xc]
mov byte [eax + ecx + 2], bl
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [edi + 4]
push 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [edi + 8]
push 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014a7
inc dword [ebp - 0x10]
add edi, 0x114
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x48]
jb 0x401109
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x270]
push eax
push ebx
lea eax, [ebp - 0x270]
push 0x406064
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x401216
cmp byte [ebp + eax - 0x270], 0x2e
je 0x401207
dec eax
jne 0x4011f8
jmp 0x401216
mov byte [ebp + eax - 0x270], 0x5c
mov byte [ebp + eax - 0x26f], bl
lea eax, [ebp - 0x270]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014a7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x3bc]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x3bc]
push str.lang
push eax
call esi
lea eax, [ebp - 0x3bc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014a7
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x168]
push eax
call edi
lea eax, [ebp - 0x168]
push str.english
push eax
call esi
lea eax, [ebp - 0x168]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014a7
lea eax, [ebp - 0x44]
push 0x406048
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4012f4
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x168]
push eax
call edi
lea eax, [ebp - 0x168]
push 0x406044
push eax
call esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x168]
push eax
call esi
lea eax, [ebp - 0x168]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4014a7
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x168]
push eax
call edi
lea eax, [ebp - 0x168]
push str.EModelEx
push eax
call esi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0x168]
push ebx
push eax
push dword [ebp - 4]
call fcn.004014cd
add esp, 0x14
test eax, eax
je 0x4014a7
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 8], ebx
jbe 0x401405
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
imul eax, eax, 0x114
add eax, ecx
push ebx
push ebx
mov dword [ebp - 0x10], eax
push dword [eax + 0x108]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x168]
push eax
call edi
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
lea eax, [ebp - 0x168]
push eax
call esi
cmp dword [ebp - 8], ebx
jne 0x4013ac
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x5cc]
jmp 0x4013bf
cmp dword [ebp - 8], 1
jne 0x4013c2
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x7dc]
push eax
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10c]
mov eax, dword [eax + 0x110]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 4]
call fcn.004014cd
add esp, 0x14
test eax, eax
je 0x4014a7
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x48]
jb 0x401356
lea eax, [ebp - 0x7dc]
push eax
lea eax, [ebp - 0xae8]
push eax
call edi
lea eax, [ebp - 0xae8]
push 0x406034
push eax
call esi
lea eax, [ebp - 0x5cc]
push eax
lea eax, [ebp - 0xae8]
push eax
call esi
lea eax, [ebp - 0x6d4]
push 0x105
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xae8]
push 0x406020
push eax
call esi
lea eax, [ebp - 0x6d4]
push eax
lea eax, [ebp - 0xae8]
push eax
call esi
push 0x44
lea eax, [ebp - 0x2b4]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60]
mov dword [ebp - 0x2b4], esi
push eax
lea eax, [ebp - 0x2b4]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0xae8]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4014a7
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 4], ebx
je 0x4014b5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x4014c6
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x18]
leave
ret 0x10