Function at 0x1003da60
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x8040
call fcn.10057f70
mov eax, dword [0x10194180]
mov dword [esp + 0x803c], eax
or eax, 0xffffffff
push ebx
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8048]
cmp eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
jne 0x1003dabe
mov eax, 0x86001000
pop ebx
mov ecx, dword [esp + 0x803c]
call fcn.100571c6
add esp, 0x8040
ret 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x8050]
lea edx, [esp + 8]
push edx
push ecx
push eax
call fcn.1003d850
add esp, 0x10
test eax, eax
jne 0x1003daf8
mov eax, 0x86002000
pop ebx
mov ecx, dword [esp + 0x803c]
call fcn.100571c6
add esp, 0x8040
ret 8
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebp
call edi
mov esi, eax
cmp esi, ebx
je 0x1003dc0c
nop
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1003dc04
cmp eax, 4
jne 0x1003dc0c
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003dc0c
cmp eax, 0x4000
ja 0x1003dc0c
test al, 0xf
mov dword [esp + 0x2c], eax
je 0x1003db5a
shr eax, 4
inc eax
jmp 0x1003db5d
shr eax, 4
shl eax, 4
push ebx
add eax, 4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], eax
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x3c]
push edx
push ebp
call edi
mov esi, eax
cmp esi, ebx
je 0x1003dc0c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 4]
cmp edx, ecx
jne 0x1003dc04
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x4040]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x20], 0x4010
call fcn.1003d590
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x1003dc08
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x4048]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x1003dc0c
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push ebp
call edi
mov esi, eax
cmp esi, ebx
jne 0x1003db20
mov dword [esp + 0x20], 0x86002000
jmp 0x1003dc1a
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x1003dc16
mov dword [esp + 0x20], 0x86002000
jmp 0x1003dc1a
cmp eax, ebx
je 0x1003dc6d
mov esi, dword [esp + 0x8058]
cmp esi, ebx
je 0x1003dc5d
mov eax, dword [esp + 0x8054]
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1003dc54
cmp cl, bl
je 0x1003dc50
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1003dc54
add eax, 2
add esi, 2
cmp cl, bl
jne 0x1003dc30
xor eax, eax
jmp 0x1003dc59
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1003dc78
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.1003d750
add esp, 8
jmp 0x1003dc78
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebp
call esi
mov ecx, dword [esp + 0x804c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
call fcn.100571c6
add esp, 0x8040
ret 8