Function at 0x1003b0da
Capabilities:
Clear file content
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003b141
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1003b11e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003b11c
push 0
push 0x336
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1003b13c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x1003b13c
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1003b2eb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1003b2e3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1003b1d7
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jg 0x1003b2e1
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10009f14
cmp dword [eax], 0xfffffffc
jge 0x1003b1fb
mov dword [ebp - 0x14], 1
jmp 0x1003b1ff
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0x7f6a
mov ecx, dword [ebp - 0x2c]
cmp eax, dword [ecx]
jg 0x1003b216
mov dword [ebp - 0x18], 1
jmp 0x1003b21a
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx]
jge 0x1003b232
mov dword [ebp - 0x1c], 1
jmp 0x1003b236
and dword [ebp - 0x1c], 0
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10009f14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jne 0x1003b250
mov dword [ebp - 0x20], 1
jmp 0x1003b254
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jg 0x1003b267
mov dword [ebp - 0x24], 1
jmp 0x1003b26b
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10009f14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x1003b288
mov dword [ebp - 0x28], 1
jmp 0x1003b28c
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10009f14
mov ecx, dword [ebp - 0x28]
neg ecx
mov esi, dword [eax]
sub esi, ecx
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10009f14
imul esi, dword [eax]
test esi, esi
jne 0x1003b2c1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x1003b2c1
and dword [ebp - 0x30], 0
jmp 0x1003b2c8
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
add esi, dword [ebp - 0x30]
push 0
mov ecx, dword [ebp - 0x7c]
call fcn.10009f14
mov dword [eax], esi
jmp 0x1003b1cc
jmp 0x1003b2eb
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
mov esp, ebp
pop ebp
ret