Function at 0x433290
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474085
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edx, dword [eax]
mov esi, ecx
mov ebx, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4333df
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov edi, ecx
sub edi, eax
jne 0x4333b5
mov eax, dword [esi + 0x28]
test eax, eax
je 0x433340
cmp dword [esi + 0x38], ecx
jae 0x4332f1
mov byte [esi + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x28]
cdq
add dword [esi + 0x40], eax
mov eax, dword [esi + 0x24]
adc dword [esi + 0x44], edx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
cmp eax, 0x100000
jae 0x433340
add eax, eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x44]
mov dword [ebp - 0x10], eax
xor eax, eax
add ecx, dword [ebp - 0x10]
push 0
push 0
adc eax, edx
mov dword [ebp - 0x18], edx
push eax
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 4
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x433407
push dword [esi + 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x433407
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp + 0xc]
add ecx, eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
cmp ebx, edi
cmovbe edi, ebx
push edi
push edx
push dword [esi + 0x34]
call fcn.0044df90
mov eax, dword [esi + 0x34]
add esp, 0xc
mov edx, dword [ebp + 0xc]
add eax, edi
add edx, edi
mov dword [esi + 0x34], eax
mov dword [ebp + 0xc], edx
sub ebx, edi
jne 0x4332d4
mov esi, dword [ebp + 8]
mov dword [esi], 0
push 0
call fcn.0044c595
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x38]
call fcn.004329c0
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x43341d
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push eax
push 5
mov ecx, esi
mov dword [ebp - 0x14], str.WinMmapFile.Append::UnmapCurrentRegion_or_MapNewRegion:
mov dword [ebp - 0x10], 0x38
call fcn.00424090
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x433478
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43346e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43348f
push edx
push ecx
call fcn.0044c564
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
jmp 0x4333e8
call fcn.00450fe0
int3