Function at 0x1000c330
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x10025160]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x444]
mov ecx, dword [esp + 0x448]
mov edx, dword [esp + 0x454]
push ebx
mov ebx, dword [esp + 0x43c]
push ebp
mov ebp, dword [esp + 0x444]
push esi
push edi
mov dword [esp + 0x28], eax
push 0
push 0
lea eax, [ebp + 1]
shl eax, 9
push eax
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000c54c
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x200
lea edx, [esp + 0x24c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c54c
cmp dword [esp + 0x1c], 0x200
jne 0x1000c54c
xor eax, eax
jmp 0x1000c3e0
mov cl, byte [eax + 0x10026750]
mov byte [esp + eax + 0x13c], cl
add eax, 1
test cl, cl
jne 0x1000c3e0
lea eax, [esp + 0x606013c]
push 0x5c
push eax
call fcn.1000ff1e
add esp, 8
test eax, eax
je 0x1000c40d
mov byte [eax], 0
mov eax, dword [esp + 0x45c]
mov edi, str.Contents
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000c4d5
mov edx, dword [esp + 0x460]
cmp edx, 4
je 0x1000c4d5
lea esi, [eax + 1]
mov edi, str.Ole10Native
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000c456
cmp edx, 2
jne 0x1000c54c
mov eax, dword [esp + 0x246]
cmp eax, dword [esp + 0x450]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 4
jae 0x1000c54c
cmp word [esp + 0x244], 0x4d42
jne 0x1000c54c
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x1001f5a0
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1000c54c
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x1000c54c
lea ecx, [esp + 0x38]
push ecx
jmp 0x1000c546
mov eax, dword [esp + 0x262]
cmp eax, dword [esp + 0x450]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xea
jae 0x1000c54c
cmp word [esp + 0x240], 0x5a45
jne 0x1000c54c
lea edx, [esp + 0x38]
push edx
push 0
push 0x1001f5a0
lea eax, [esp + 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1000c54c
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x1000c54c
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0xffffffff
mov esi, ebp
je 0x1000c66f
mov eax, dword [esp + 0x450]
add eax, 0xffffffff
shr eax, 9
mov dword [esp + 0x30], eax
lea ebx, [ebx]
cmp esi, eax
jae 0x1000c68c
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + esi + 1]
test al, 2
jne 0x1000c6cd
or al, 2
mov byte [ecx + esi + 1], al
push 0
push 0
lea eax, [esi + 1]
shl eax, 9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000c5ce
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x200
lea edx, [esp + 0x24c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c5ce
cmp dword [esp + 0x1c], 0x200
je 0x1000c5d6
mov dword [esp + 0x10], 0x63000006
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x24]
lea eax, [esi + 1]
mov dword [ecx], eax
jne 0x1000c694
mov edi, dword [esp + 0x18]
cmp edi, 0x200
jbe 0x1000c5fb
mov edi, 0x200
mov eax, dword [esp + 0x20]
mov edx, 0x200
sub edi, eax
sub edx, eax
cmp edi, edx
ja 0x1000c6cd
mov ebp, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x38]
push ecx
push edi
lea edx, [esp + eax + 0x24c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000c635
cmp dword [esp + 0x34], edi
je 0x1000c63f
mov dword [esp + 0x10], 7
jmp 0x1000c694
sub dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
jne 0x1000c694
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x38]
push eax
call edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call main
add esp, 0x434
ret
mov dword [esp + 0x10], 0x63000001
cmp dword [esp + 0x460], 0
jne 0x1000c6b5
mov eax, dword [esp + 0x450]
push eax
push ebx
push esi
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
add esp, 0xc
mov esi, eax
jmp 0x1000c6b8
add esi, 1
cmp dword [esp + 0x10], 0
jne 0x1000c6cd
cmp esi, 0xfffffffd
jae 0x1000c6cd
mov eax, dword [esp + 0x30]
jmp 0x1000c570
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x1000c673
push eax
call fcn.1000bd70
push eax
call fcn.1000bd40
add esp, 8
push eax
push 2
call fcn.1000bd30
xor eax, eax
jmp 0x1000c673