Function at 0x42fa90
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445963
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00402160
push 0x20
mov byte [ebp - 4], 2
call fcn.0040c5dc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x42fb88
lea ecx, [ebx + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0x3f
push str.mobile_json_last_write_exe_87A0C478_E9C6_4420_B594_3419050BA29D
mov byte [ebp - 4], 4
call fcn.00402270
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
call fcn.00436ed0
add esp, 4
lea ecx, [ebp - 0x38]
push 1
push 0x447e84
call fcn.004023b0
push 0x3f
push str.mobile_json_last_write_exe_87A0C478_E9C6_4420_B594_3419050BA29D
lea ecx, [ebp - 0x38]
call fcn.004023b0
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push 0x100
push 4
push 0xc0000000
push eax
call fcn.00436e80
add esp, 0x14
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x42fd1d
lea ecx, [ebp - 0x38]
mov dword [ebx + 4], 0xc0000000
call fcn.004020f0
jmp 0x42fb8a
xor ebx, ebx
mov esi, dword [ebx]
lea eax, [ebp - 0x18]
mov edi, dword [ebp - 0x54]
push eax
push esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42fd54
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp edx, ecx
jl 0x42fc14
mov eax, dword [ebp - 0x18]
jg 0x42fbbb
cmp edi, eax
jbe 0x42fc14
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42fd54
sub edi, dword [ebp - 0x18]
je 0x42fc38
mov eax, 0x200
nop word [eax + eax]
cmp edi, 0x200
mov esi, edi
push 0
cmova esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x459d38
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], esi
jne 0x42fd54
mov eax, 0x200
sub edi, esi
jne 0x42fbe0
jmp 0x42fc38
push 0
push 0
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42fd54
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x42fd54
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0xc0000000
push ebx
lea ecx, [ebp - 0x4c]
call fcn.004300a0
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
push dword [ebp - 0x4c]
call fcn.0040e978
mov eax, dword [ebp - 0x4c]
add esp, 0xc
test eax, eax
je 0x42fc82
sub eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x42fc98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0xffffffff
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x42fcce
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fcc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fcc4
call dword [0x4475d8]
push edx
push ecx
call fcn.0040c60c
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x42fd0a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42fd00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fd00
call dword [0x4475d8]
mov eax, 0x42fcce
ret
push edx
push ecx
call fcn.0040c60c
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x18]
call fcn.00434310
mov ecx, ebx
call fcn.004352b0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x90]
call fcn.00434370
push 0x452a9c
lea eax, [ebp - 0x90]
push eax
call fcn.0040e96c
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x18]
call fcn.00434310
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00434370
push 0x452a9c
lea eax, [ebp - 0xbc]
push eax
call fcn.0040e96c
int3