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

Disassembly:
push ebp
lea ebp, [esp - 0x14b4]
mov eax, 0x1534
call fcn.0040c4d0
mov eax, dword [0x4131a4]
xor eax, ebp
mov dword [ebp + 0x14b0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14bc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [0x413f70]
mov dword [0x414aa0], ebx
jmp 0x401050
mov eax, dword [esi]
cmp eax, ebx
je 0x40104d
push 1
call dword [eax + 0x20]
add esi, 4
cmp esi, dword [0x413f74]
jb 0x401042
or dword [ebp - 0x20], 0xffffffff
push 0x104
lea eax, [ebp + 0x44]
push eax
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
je 0x4014bd
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push esi
call edi
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x4014bd
push ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0xc]
call edi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x4c
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
mov eax, dword [ebp]
xor ecx, ecx
mov edx, 0x218
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406306
cmp dword [ebp], ebx
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
jbe 0x4011c4
mov dword [ebp - 0x10], ebx
lea edi, [eax + 0x20c]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 2
lea eax, [edi - 0x20c]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
push ebx
lea eax, [ebp - 0x14]
push eax
movzx eax, word [edi - 0x20c]
add eax, eax
push eax
lea eax, [edi - 0x20a]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shr eax, 1
add eax, dword [ebp - 0x10]
push ebx
mov word [ecx + eax*2 + 2], bx
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [edi + 8]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4014bd
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], 0x10c
add edi, 0x218
cmp eax, dword [ebp]
jb 0x401115
lea eax, [ebp + 0x1098]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x1098]
push eax
push ebx
push 0x4101d8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x1098]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1098]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x40122c
cmp word [ebp + eax*2 + 0x1098], 0x2e
je 0x401218
dec eax
jne 0x401208
jmp 0x40122c
add eax, eax
mov word [ebp + eax + 0x1098], 0x5c
mov word [ebp + eax + 0x109a], bx
push ebx
lea eax, [ebp + 0x1098]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4014bd
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x1098]
push eax
lea eax, [ebp + 0xe8c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4101e0
lea eax, [ebp + 0xe8c]
push eax
call edi
push ebx
lea eax, [ebp + 0xe8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4014bd
lea eax, [ebp + 0xe8c]
push eax
lea eax, [ebp + 0x12a4]
push eax
call esi
push 0x4101ec
lea eax, [ebp + 0x12a4]
push eax
call edi
push ebx
lea eax, [ebp + 0x12a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4014bd
push str.english
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40130a
lea eax, [ebp + 0xe8c]
push eax
lea eax, [ebp + 0x12a4]
push eax
call esi
push 0x410210
lea eax, [ebp + 0x12a4]
push eax
call edi
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x12a4]
push eax
call edi
push ebx
lea eax, [ebp + 0x12a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4014bd
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0x1098]
push eax
lea eax, [ebp + 0x12a4]
push eax
call esi
push 0x410214
lea eax, [ebp + 0x12a4]
push eax
call edi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20c]
push ebx
lea ecx, [ebp + 0x12a4]
push ecx
push dword [ebp - 0xc]
lea esi, [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x1c], eax
call fcn.004014f6
add esp, 0xc
test eax, eax
je 0x4014bb
xor ebx, ebx
cmp dword [ebp], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40141d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
imul eax, eax, 0x218
push ebx
push ebx
lea esi, [eax + ecx]
push dword [esi + 0x20c]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0x1098]
push eax
lea eax, [ebp + 0x12a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 2]
push eax
lea eax, [ebp + 0x12a4]
push eax
call edi
cmp dword [ebp - 0x10], ebx
jne 0x4013c3
lea eax, [ebp + 0x12a4]
push eax
lea eax, [ebp + 0x45c]
jmp 0x4013d6
cmp dword [ebp - 0x10], 1
jne 0x4013dd
lea eax, [ebp + 0x12a4]
push eax
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 0x210]
push dword [ebp - 0x10]
mov ebx, dword [esi + 0x214]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x12a4]
push eax
push dword [ebp - 0xc]
lea esi, [ebp - 0x2c]
call fcn.004014f6
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4014bd
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp]
jb 0x40136e
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp + 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x410228
lea eax, [ebp + 0x874]
push eax
call edi
lea eax, [ebp + 0x45c]
push eax
lea eax, [ebp + 0x874]
push eax
call edi
push 0x105
lea eax, [ebp + 0x668]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x41022c
lea eax, [ebp + 0x874]
push eax
call edi
lea eax, [ebp + 0x668]
push eax
lea eax, [ebp + 0x874]
push eax
call edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00406560
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp + 0x874]
push eax
push ebx
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014bb
and dword [ebp - 0x20], 0
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4014cb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
pop edi
pop esi
pop ebx
je 0x4014dc
push dword [ebp - 0x18]
call fcn.00405e42
pop ecx
mov ecx, dword [ebp + 0x14b0]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00405f55
add ebp, 0x14b4
leave
ret 0x10