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

Disassembly:
mov eax, 0x484fa3
call fcn.0047e070
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
cmp byte [esi + 0x48], 0
jne 0x44dea4
lea eax, [ebp - 0x48]
push str.FileManager_is_forbidden
push eax
call fcn.0042a481
pop ecx
lea eax, [ebp - 0x48]
pop ecx
push 0x4924b4
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x4b393e]
lea ecx, [ebp - 0x34]
push eax
call fcn.0041d8c3
mov ecx, dword [esi + 0xc]
and dword [ebp - 4], 0
lea edx, [ebp - 0x14]
push 2
mov eax, dword [ecx]
push edx
call dword [eax + 4]
movzx eax, word [ebp - 0x14]
push eax
lea ecx, [ebp - 0x88]
call fcn.0042bbba
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
mov edi, dword [eax]
movzx eax, word [ebp - 0x14]
push eax
call fcn.0042c49c
mov ecx, dword [esi + 0xc]
push eax
call dword [edi + 4]
movzx eax, word [ebp - 0x14]
push eax
lea ecx, [ebp - 0x88]
call fcn.0042c492
lea ecx, [ebp - 0x88]
call fcn.0042bf03
mov bl, al
test bl, 4
mov byte [ebp - 0x11], bl
je 0x44df2c
lea eax, [ebp - 0x3c]
push 8
push eax
lea ecx, [ebp - 0x88]
call fcn.0042be8e
jmp 0x44df34
or dword [ebp - 0x38], 0xffffffff
or dword [ebp - 0x3c], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0042bb84
push 0x46
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.0042bd59
mov al, byte [ebp - 0x11]
and bl, 3
neg bl
sbb bl, bl
shr al, 1
inc bl
and al, 1
test bl, bl
mov byte [ebp - 0x11], al
je 0x44dfed
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x88]
push eax
call fcn.0042bf71
push 0xffffffffffffffff
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0042f61b
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040c3bb
add esp, 0xc
lea edi, [esi + 0x54]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042efe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042eea2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0042d82b
push edi
mov ecx, esi
call fcn.0044d682
mov ecx, edi
call fcn.0042f61b
push eax
call fcn.0044ee5c
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x44dfdd
push edi
call fcn.0044f0c6
test al, al
pop ecx
je 0x44e015
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x70]
call fcn.0042bd77
jmp 0x44e1a3
test al, al
je 0x44e015
lea eax, [ebp - 0x88]
push eax
call fcn.0044ef3c
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x58]
push 0x10
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x1c], edx
call fcn.0042be8e
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 0x44e032
mov eax, 0xc0000000
push 0
push 0x20
push ecx
lea edi, [esi + 0x54]
push 0
push 1
push eax
mov ecx, edi
call fcn.0042f61b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
jne 0x44e0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], eax
call fcn.0042bd77
cmp dword [ebp - 0x1c], 0x50
jne 0x44e1a3
test bl, bl
je 0x44e1a3
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0042f61b
push eax
call fcn.0044e800
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x44e0a4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push dword [ebp - 0x20]
push eax
call fcn.0044eeef
add esp, 0xc
jmp 0x44e1a3
and dword [ebp - 0x18], 0
mov ecx, edi
call fcn.0042f61b
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d8e3
mov edi, dword [esi]
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0042f61b
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.0042d82b
test bl, bl
jne 0x44e184
cmp byte [ebp - 0x11], bl
je 0x44e163
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0x17
push eax
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44e17d
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x1c]
jg 0x44e17d
jl 0x44e131
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
ja 0x44e17d
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi + 0x50]
call fcn.0044eabf
add esp, 0x10
test eax, eax
jne 0x44e17d
lea eax, [ebp - 0x58]
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x44e17d
and dword [ebp - 0x18], eax
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e184
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x18], eax
jbe 0x44e184
mov ecx, esi
call fcn.0044d2b6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
call fcn.0042bd77
cmp dword [ebp - 0x18], 0
jne 0x44e1a3
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x50]
call fcn.0042a94a
pop ecx
pop ecx
mov eax, dword [esi + 0xc]
push 1
push dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
mov edi, dword [eax]
call fcn.0042c48e
mov ecx, dword [esi + 0xc]
push eax
call dword [edi]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0042bc46
and byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0042bc46
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0041d8e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret