Function at 0x4334a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4740de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov dword [ebp - 0x10], 0
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [ebp - 4], 0
mov eax, 1
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x30]
mov esi, eax
sub esi, dword [ebx + 0x34]
test ecx, ecx
je 0x433546
cmp dword [ebx + 0x38], eax
jae 0x4334f7
mov byte [ebx + 0x48], 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x28]
cdq
add dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x24]
adc dword [ebx + 0x44], edx
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
cmp eax, 0x100000
jae 0x433546
add eax, eax
mov dword [ebx + 0x24], eax
test esi, esi
je 0x433645
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x44]
sub ecx, esi
push 0
push 0
sbb eax, 0
push eax
push ecx
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43363c
lea ecx, [ebp - 0x3c]
call fcn.004329c0
mov dword [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x433589
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
push eax
push 5
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], str.WinMmapFile.Close::SetFilePointer:
mov dword [ebp - 0x20], 0x23
call fcn.00424090
mov eax, 5
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [edi]
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x4335f9
push eax
call fcn.0044c595
add esp, 4
test esi, esi
jne 0x4335d8
xor eax, eax
jmp 0x4335f7
mov edi, dword [esi]
add edi, 5
push edi
call fcn.0044c7e5
push edi
push esi
push eax
mov dword [ebp - 0x14], eax
call fcn.0044df90
mov edi, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push esi
call fcn.0044c595
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x433645
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433630
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43374d
push edx
push ecx
call fcn.0044c564
add esp, 8
jmp 0x433645
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43371c
cmp dword [edi], eax
jne 0x43371c
lea ecx, [ebp - 0x3c]
call fcn.004329c0
mov dword [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x433677
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
push eax
push 5
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], str.WinMmapFile.Close::CloseHandle:
mov dword [ebp - 0x18], 0x20
call fcn.00424090
or dword [ebp - 0x10], 8
mov byte [ebp - 4], 6
mov eax, dword [edi]
mov esi, dword [ebp - 0x14]
cmp eax, esi
je 0x4336e3
push eax
call fcn.0044c595
add esp, 4
test esi, esi
jne 0x4336c2
xor eax, eax
jmp 0x4336e1
mov edi, dword [esi]
add edi, 5
push edi
call fcn.0044c7e5
push edi
push esi
push eax
mov dword [ebp - 0x14], eax
call fcn.0044df90
mov edi, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push esi
call fcn.0044c595
mov edx, dword [ebp - 0x28]
add esp, 4
cmp edx, 0x10
jb 0x43371c
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x433712
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433752
push edx
push ecx
call fcn.0044c564
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.00450fe0
call fcn.00450fe0
int3