Function at 0x1000c666
Capabilities:
Clear file content
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x170
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x13c], 0xd
mov byte [ebp - 0x13b], 0xa
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1000d590
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 8]
push ecx
push str._sWin32Cfg.cfg
push 0x105
lea edx, [ebp - 0x11c]
push edx
call fcn.1000d0f0
add esp, 0x10
test eax, eax
je 0x1000c6e7
mov eax, 0x202
jmp 0x1000cd38
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x1000c71f
mov eax, 0x19
jmp 0x1000cd38
mov dword [ebp - 4], 0
push 2
push 0
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cffe
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x128], edx
push 0
push 0
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cffe
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.1000d575
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x1000c7a9
mov dword [ebp - 0x150], 0x20a
push 0x10013978
lea ecx, [ebp - 0x150]
push ecx
call fcn.1000db6a
mov edx, 1
test edx, edx
je 0x1000cccc
push 0
lea eax, [ebp - 0x144]
push eax
push 1
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cca4
cmp dword [ebp - 0x144], 0
jne 0x1000c872
push 2
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
mov edx, dword [ebp + 0x10]
push edx
call fcn.1000d590
add esp, 4
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
mov edx, dword [ebp + 0xc]
push edx
call fcn.1000d590
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
push 1
push str.____
mov edx, dword [ebp - 0x138]
push edx
call fcn.1000cf40
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.1000d1de
add esp, 4
mov eax, 0x27
jmp 0x1000cd38
movsx edx, byte [ebp - 0x120]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
cmp ecx, edx
jne 0x1000cc98
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1000cc96
mov dword [ebp - 0x130], 0
push 1
push 0
mov edx, dword [ebp - 0x138]
push edx
call fcn.1000cffe
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x134], eax
mov ecx, 1
test ecx, ecx
je 0x1000cc45
push 0
lea edx, [ebp - 0x144]
push edx
push 1
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cc1a
movsx edx, byte [ebp - 0x120]
cmp edx, 0x3b
je 0x1000c929
cmp dword [ebp - 0x144], 0
jne 0x1000ca21
push 1
push 0
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cffe
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x128]
sub edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf9f
mov edx, dword [ebp - 0x128]
sub edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x140]
mov byte [eax + edx], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x174], ecx
cmp dword [ebp - 0x174], 0x2a
je 0x1000c99e
cmp dword [ebp - 0x174], 0x2b
je 0x1000c9dd
jmp 0x1000c9f2
push 0
mov edx, dword [ebp - 0x124]
sub edx, 1
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cffe
cmp dword [ebp - 0x14], 0
je 0x1000c9db
push 0x10016b2c
call fcn.1000d590
add esp, 4
push eax
push 0x10016b30
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
jmp 0x1000c9f2
push 0
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cffe
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cf40
push 1
push 0x10016b34
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
jmp 0x1000cc45
mov dword [ebp - 0x14], 1
movsx edx, byte [ebp - 0x120]
cmp edx, 0x2c
jne 0x1000ca56
push 1
push 0
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cffe
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x134], ecx
movsx edx, byte [ebp - 0x120]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
cmp ecx, edx
jne 0x1000cc0e
mov edx, dword [ebp - 0x130]
add edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x130]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1000cc0c
cmp dword [ebp + 0x14], 0x37
jne 0x1000cbe6
push 1
push 0
mov edx, dword [ebp - 0x138]
push edx
call fcn.1000cffe
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cf9f
mov ecx, dword [ebp - 0x128]
sub ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x140]
mov byte [edx + ecx], 0
push 0
mov eax, dword [ebp - 0x134]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cffe
push 1
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x138]
push eax
call fcn.1000cf9f
movsx ecx, byte [ebp - 0x120]
cmp ecx, 0x2c
jne 0x1000cb3f
push 1
push 0xffffffffffffffff
mov edx, dword [ebp - 0x138]
push edx
call fcn.1000cffe
mov eax, dword [ebp - 0x140]
push eax
call fcn.1000d590
add esp, 4
push eax
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call fcn.1000cf40
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000cb8e
mov dword [ebp - 0x154], 0x10a
push 0x10013978
lea ecx, [ebp - 0x154]
push ecx
call fcn.1000db6a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x10016b38
push 0x105
lea ecx, [ebp - 0x11c]
push ecx
call fcn.1000d0f0
add esp, 0x14
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x1000cbd9
mov dword [ebp - 0x158], 0x202
push 0x10013978
lea edx, [ebp - 0x158]
push edx
call fcn.1000db6a
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.1000d1de
add esp, 4
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
jmp 0x1000cd38
jmp 0x1000cc18
mov dword [ebp - 0x130], 0
jmp 0x1000cc40
mov eax, dword [ebp - 0x140]
push eax
call fcn.1000d1de
add esp, 4
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x26
jmp 0x1000cd38
jmp 0x1000c8dc
mov edx, dword [ebp - 0x140]
push edx
call fcn.1000d590
add esp, 4
push eax
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.1000cf40
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000cc94
mov dword [ebp - 0x15c], 0x10a
push 0x10013978
lea eax, [ebp - 0x15c]
push eax
call fcn.1000db6a
jmp 0x1000cccc
jmp 0x1000cca2
mov dword [ebp - 0x130], 0
jmp 0x1000ccc7
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.1000d1de
add esp, 4
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x26
jmp 0x1000cd38
jmp 0x1000c7a9
jmp 0x1000cd10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x140]
push eax
call fcn.1000d1de
add esp, 4
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10