Function at 0x407150
Capabilities:
Clear file content
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x318], ecx
mov byte [ebp - 0x230], 0
push 0x103
push 0
lea eax, [ebp - 0x22f]
push eax
call fcn.0042c680
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.0042c680
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str._s___s
lea edx, [ebp - 0x110]
push edx
call fcn.00429869
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
jne 0x407249
mov byte [ebp - 0x308], 0
push 0x63
push 0
lea ecx, [ebp - 0x307]
push ecx
call fcn.0042c680
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44dc74
lea edx, [ebp - 0x308]
push edx
call fcn.00429869
add esp, 0xc
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x407412
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], edx
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x407291
push 0
push 0x44dc90
push 0x44dc98
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4072b6
push 0
push str.FAIL
push 0x44dcb4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x234], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 0x2a0], 0
push 0x63
push 0
lea edx, [ebp - 0x29f]
push edx
call fcn.0042c680
add esp, 0xc
call fcn.0042a805
cdq
mov ecx, 0x64
idiv ecx
push edx
push 0
call fcn.00406360
add esp, 4
push edx
push eax
push str._d_03d
lea edx, [ebp - 0x2a0]
push edx
call fcn.00429869
add esp, 0x14
lea eax, [ebp - 0x2a0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 4
push 0
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x407405
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x4073f8
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0xf0000
div ecx
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0xf0000
div ecx
test edx, edx
jbe 0x4073a0
mov edx, dword [ebp - 0x310]
add edx, 1
mov dword [ebp - 0x310], edx
mov dword [ebp - 0x314], 0
jmp 0x4073bb
mov eax, dword [ebp - 0x314]
add eax, 1
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
cmp ecx, dword [ebp - 0x310]
jge 0x4073eb
mov edx, dword [ebp - 0x314]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x30c]
push ecx
mov ecx, dword [ebp - 0x318]
call fcn.00407570
jmp 0x4073ac
mov edx, dword [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297fd
mov esp, ebp
pop ebp
ret 8