Function at 0x455eb3
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x48ee73
call fcn.004874e0
sub esp, 0x80
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
cmp byte [esi + 0x40], 0
jne 0x455ef2
lea eax, [ebp - 0x4c]
push str.FileManager_is_forbidden
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x4c]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4c2676]
lea ecx, [ebp - 0x40]
push eax
call fcn.00420d2f
mov ecx, dword [esi + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.0042d73e
movzx eax, word [ebp - 0x14]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0043210a
movzx eax, word [ebp - 0x14]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00432a35
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d73e
movzx eax, word [ebp - 0x14]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00432a2b
lea ecx, [ebp - 0x8c]
call fcn.00432486
mov bl, al
test bl, 4
mov byte [ebp - 0x11], bl
je 0x455f77
lea eax, [ebp - 0x38]
push 8
push eax
lea ecx, [ebp - 0x8c]
call fcn.00432411
jmp 0x455f7f
or dword [ebp - 0x34], 0xffffffff
or dword [ebp - 0x38], 0xffffffff
mov al, byte [ebp - 0x11]
and bl, 3
neg bl
sbb bl, bl
lea ecx, [ebp - 0x74]
shr al, 1
and al, 1
inc bl
mov byte [ebp - 0x11], al
call fcn.004320d4
push 0x46
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.004322ad
cmp dword [ebp - 0x40], 0
je 0x455fb6
push dword [ebp - 0x40]
jmp 0x456039
test bl, bl
je 0x456046
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.004324f4
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00435b75
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040c7bd
add esp, 0xc
lea edi, [esi + 0x4c]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0043553d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004353fc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00433d8a
push edi
mov ecx, esi
call fcn.004556c4
mov ecx, edi
call fcn.00435b75
push eax
call fcn.00456eb5
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x456036
push edi
call fcn.0045711f
test al, al
pop ecx
je 0x456070
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.004322cb
jmp 0x4561fe
cmp byte [ebp - 0x11], 0
je 0x456070
lea eax, [ebp - 0x8c]
push eax
call fcn.00456f95
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x5c]
push 0x10
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x1c], edx
call fcn.00432411
mov al, bl
neg al
sbb eax, eax
and al, 0xfd
add eax, 4
cmp byte [ebp - 0x11], 0
mov ecx, eax
mov eax, 0x40000000
je 0x45608d
mov eax, 0xc0000000
push 0
push 0x20
push ecx
lea edi, [esi + 0x4c]
push 0
push 1
push eax
mov ecx, edi
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
jne 0x45611d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], eax
call fcn.004322cb
cmp dword [ebp - 0x1c], 0x50
jne 0x4561fe
test bl, bl
je 0x4561fe
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00435b75
push eax
call fcn.00456859
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x4560ff
push dword [ebp - 0x1c]
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 2
push dword [ebp - 0x20]
push eax
call fcn.00456f48
add esp, 0xc
jmp 0x4561fe
and dword [ebp - 0x18], 0
mov ecx, edi
call fcn.00435b75
push eax
lea ecx, [ebp - 0x2c]
call fcn.00433e42
mov edi, dword [esi]
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00435b75
push eax
push str.Write_file__s
mov ecx, esi
call dword [edi + 0x20]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00433d8a
test bl, bl
jne 0x4561df
cmp byte [ebp - 0x11], bl
je 0x4561be
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0x17
push eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4561d8
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jg 0x4561d8
jl 0x45618c
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
ja 0x4561d8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi + 0x48]
call fcn.00456b18
add esp, 0x10
test eax, eax
jne 0x4561d8
lea eax, [ebp - 0x5c]
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4561d8
and dword [ebp - 0x18], eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4561df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x18], eax
jbe 0x4561df
mov ecx, esi
call fcn.004552e2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.004322cb
cmp dword [ebp - 0x18], 0
jne 0x4561fe
lea eax, [ebp - 0x38]
push eax
push dword [esi + 0x48]
call fcn.00430d60
pop ecx
pop ecx
push 1
lea ecx, [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0042dacc
mov ecx, dword [esi + 0xc]
push eax
call fcn.0042d448
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00432196
and byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00432196
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00420d63
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret