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, 0xae4
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov eax, 0x40dc00
mov dword [0x40dc70], 0x40a030
mov dword [0x40dbf8], eax
push ebx
push eax
mov dword [0x40dc00], 0x84
mov dword [0x40dc64], 0x300
call fcn.00401556
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x7d8]
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 - 0x7d8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x401451
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 0x401451
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 - 0x4c]
push 0x2c
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x401451
mov eax, dword [ebp - 0x44]
imul eax, eax, 0x114
push eax
call fcn.00403e78
cmp dword [ebp - 0x44], 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 0x401451
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 0x401451
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 0x401451
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 0x401451
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 0x401451
inc dword [ebp - 0x10]
add edi, 0x114
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x44]
jb 0x401109
lea eax, [ebp - 0x1a8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x1a8]
push eax
push ebx
lea eax, [ebp - 0x1a8]
push 0x40a078
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x401216
cmp byte [ebp + eax - 0x1a8], 0x2e
je 0x401207
dec eax
jne 0x4011f8
jmp 0x401216
mov byte [ebp + eax - 0x1a8], 0x5c
mov byte [ebp + eax - 0x1a7], bl
lea eax, [ebp - 0x1a8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401451
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x2b0]
push str.lang
push eax
call esi
lea eax, [ebp - 0x2b0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401451
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x3b8]
push eax
call edi
lea eax, [ebp - 0x3b8]
push str.english
push eax
call esi
lea eax, [ebp - 0x3b8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401451
lea eax, [ebp - 0x40]
push 0x40a05c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4012f4
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x3b8]
push eax
call edi
lea eax, [ebp - 0x3b8]
push 0x40a058
push eax
call esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3b8]
push eax
call esi
lea eax, [ebp - 0x3b8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401451
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 8], ebx
jbe 0x4013af
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 - 0x1a8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call edi
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
lea eax, [ebp - 0x2b0]
push eax
call esi
cmp dword [ebp - 8], ebx
jne 0x401356
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x5c8]
jmp 0x401369
cmp dword [ebp - 8], 1
jne 0x40136c
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x4c0]
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 - 0x2b0]
push eax
push dword [ebp - 4]
call fcn.00401477
add esp, 0x14
test eax, eax
je 0x401451
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x44]
jb 0x401300
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0xae4]
push eax
call edi
lea eax, [ebp - 0xae4]
push 0x40a054
push eax
call esi
lea eax, [ebp - 0x5c8]
push eax
lea eax, [ebp - 0xae4]
push eax
call esi
lea eax, [ebp - 0x6d0]
push 0x105
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xae4]
push 0x40a040
push eax
call esi
lea eax, [ebp - 0x6d0]
push eax
lea eax, [ebp - 0xae4]
push eax
call esi
push 0x44
lea eax, [ebp - 0xa0]
pop esi
push esi
push ebx
push eax
call fcn.00403e20
add esp, 0xc
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xa0], esi
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0xae4]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401451
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 4], ebx
je 0x40145f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x401470
push dword [ebp - 0x14]
call fcn.00403e10
pop ecx
mov eax, dword [ebp - 0x18]
leave
ret 0x10