Function at 0x410c88
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
sub esp, 0x2d0
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x2d0], eax
push 0x30
mov eax, 0x4339a4
call fcn.004217ef
mov edi, dword [ebp + 0x2dc]
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 0x2e0]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x2e8]
mov dword [ebp - 0x24], eax
xor esi, esi
push esi
push str.AddCleanupLine
lea ecx, [ebp]
call fcn.004107dc
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp edi, esi
je 0x410cea
cmp word [edi], si
jne 0x410cf4
push 0x80070057
call fcn.00420860
cmp ebx, esi
je 0x410cfd
cmp word [ebx], si
jne 0x410d07
push 0x80070057
call fcn.00420860
mov word [ebp + 0x84], si
push 0x208
push esi
lea eax, [ebp + 0x86]
push eax
call fcn.00421170
mov dword [ebp - 0x20], 0x104
push 0x100
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x84]
push eax
call fcn.0040ac1a
push eax
call fcn.0040149e
add esp, 0x1c
push str.Cleanup.txt
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
mov ebx, 0x80
push ebx
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp + 0x84]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x410d92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014af
pop ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
push esi
lea eax, [ebp - 0x28]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410dbe
cmp dword [ebp - 0x28], 2
jb 0x410dbe
cmp word [ebp - 0x1c], 0xfeff
je 0x410e1c
lea ecx, [ebp - 0x14]
call fcn.0040aea1
push esi
push ebx
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x84]
push eax
call edi
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.0040aea1
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x410df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014af
pop ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], 0xfeff
push esi
lea eax, [ebp - 0x38]
push eax
push 2
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004014ec
pop ecx
lea eax, [ebp + 0x84]
push eax
push str.FilePath___ls
push esi
lea eax, [ebp]
push eax
call fcn.00410918
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push esi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014cf
pop ecx
lea ecx, [ebp + 0x68]
call fcn.00403576
mov byte [ebp - 4], 3
push dword [ebp - 0x2c]
lea ecx, [ebp + 0x68]
call fcn.004102f1
mov edi, 0x4393a4
push edi
lea ecx, [ebp + 0x68]
call fcn.004102f1
push dword [ebp - 0x30]
lea ecx, [ebp + 0x68]
call fcn.004102f1
cmp dword [ebp + 0x2e4], esi
jne 0x410e93
cmp dword [ebp - 0x24], esi
je 0x410eff
push edi
lea ecx, [ebp + 0x68]
call fcn.004102f1
mov word [ebp + 0x290], si
push 0x3e
push esi
lea eax, [ebp + 0x292]
push eax
call fcn.00421170
push 0xa
push 0x20
lea eax, [ebp + 0x290]
push eax
push dword [ebp + 0x2e4]
call fcn.0042481d
add esp, 0x1c
lea eax, [ebp + 0x290]
push eax
lea ecx, [ebp + 0x68]
call fcn.004102f1
mov ebx, dword [ebp - 0x24]
cmp ebx, esi
je 0x410eff
push edi
lea ecx, [ebp + 0x68]
call fcn.004102f1
cmp word [ebx], si
mov eax, ebx
jne 0x410ef6
mov eax, 0x4393a0
push eax
lea ecx, [ebp + 0x68]
call fcn.004102f1
push 0x439398
lea ecx, [ebp + 0x68]
call fcn.004102f1
cmp dword [ebp + 0x80], 8
mov eax, dword [ebp + 0x6c]
jae 0x410f1b
lea eax, [ebp + 0x6c]
push eax
push str.accum___ls
push esi
lea eax, [ebp]
push eax
call fcn.00410918
add esp, 0x10
mov dword [ebp - 0x34], esi
cmp dword [ebp + 0x80], 8
mov eax, dword [ebp + 0x6c]
jae 0x410f40
lea eax, [ebp + 0x6c]
push esi
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 0x7c]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004014ec
pop ecx
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp + 0x68]
call fcn.00402dc3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040aea1
mov dword [ebp - 4], esi
push dword [ebp - 0x18]
push 0x4376ce
lea ecx, [ebp]
call fcn.00410b8f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00410891
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2d0]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x2d4
leave
ret