Function at 0xa0ba1e
Capabilities:
Create directory
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.00a0ca54
xor ebp, ebp
lea ecx, [esi + 4]
mov dword [esp + 0x6c], ebp
call fcn.00a0bfce
push 0x9f7557
push 1
push ebp
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.00a0cbd4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x40678c
push 0xf3efe3
mov byte [esp + 0x70], 2
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea ecx, [esp + 0x20]
call fcn.00a0ca42
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x24]
test eax, eax
je 0xa0baab
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0xa0baab
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00a0cbce
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x7c]
cmp eax, ebp
jne 0xa0baed
xor eax, eax
jmp 0xa0baf0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea ecx, [esp + 0x40]
call fcn.00a0ca48
mov ebx, dword [edi + 0xe8]
lea edx, [esp + 0x4c]
push edx
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp ebx, ebp
je 0xa0bb25
mov eax, dword [esp + 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x50]
push 0xcc0020
neg eax
sbb eax, eax
push ebp
and eax, ecx
mov ecx, dword [esp + 0x5c]
push ebp
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov ebx, dword [edi + 0x118]
mov ebp, dword [esp + 0x50]
lea ecx, [esp + 0x4c]
push ecx
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test ebx, ebx
je 0xa0bb79
mov edx, dword [esp + 0x40]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x40]
sub ecx, edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x3c]
sub ecx, edx
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ebx
push 0
push eax
mov eax, dword [esp + 0x64]
push eax
push edx
push 0
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov ebx, dword [edi + 0x100]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
mov dword [esp + 0x78], edx
push eax
push 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test ebx, ebx
je 0xa0bbe6
mov ecx, dword [esp + 0x40]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x40]
sub ecx, edx
mov edx, dword [esp + 0x54]
sub ecx, eax
lea eax, [esp + 0x3c]
sub ecx, ebp
push 0xcc0020
neg eax
sbb eax, eax
push edx
and eax, ebx
mov ebx, dword [esp + 0x58]
push ebx
push 0
push 0
push eax
push edx
mov edx, dword [esi + 4]
push ecx
push 0
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x18c]
test eax, eax
je 0xa0bc8e
mov eax, dword [edi + 0x184]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x34]
add eax, ebp
add edx, ebp
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0x188]
sub ebx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
add edx, ecx
mov dword [esp + 0x34], ebx
test esi, esi
mov dword [esp + 0x38], edx
jne 0xa0bc71
xor edx, edx
jmp 0xa0bc74
mov edx, dword [esi + 4]
mov ebx, dword [edi + 0x18c]
push 3
push 0
push 0
push 0x10
push 0x10
push ebx
push ecx
push eax
push edx
call dword [0x4062e0]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x88]
add edx, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x19c]
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
add ecx, ebp
add eax, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40646c
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.00a0ca2a
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 4
push ecx
mov ecx, dword [esp + 0x78]
call fcn.00a0ca60
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0xa0bda7
push 0x40802c
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
lea ecx, [esp + 0x18]
call fcn.00a0ca42
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x30]
push 1
mov ecx, esi
mov ebx, eax
call fcn.00a0ca5a
mov eax, dword [edi + 0x1a8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea edi, [esp + 0x2c]
push 0x24
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x14]
call fcn.00a0ca12
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.00a0ca1e
mov edi, 0x406630
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 5
call fcn.00a0ca12
mov esi, str.user32.dll
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 6
call fcn.00a0ca12
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 7
call fcn.00a0ca12
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x6c], 0xffffffff
call fcn.00a0ca36
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x1c