Function at 0x415b80
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b53c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ef7d0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef7d0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], vtable.wpf::Reader.0
mov dword [esp + 0x1c], ebx
push 0x40000000
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], ebx
call fcn.0042bd80
test al, al
jne 0x415c6b
mov ebp, 0xf
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x68], 1
call fcn.0042e4e0
add esp, 4
push ebx
push 0x2710
lea ecx, [esp + 0x1c]
call fcn.0042c080
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edi, 0x10
cmp dword [esp + 0x54], edi
jae 0x415c2c
lea ecx, [esp + 0x40]
push 0x30
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x14]
push edx
call fcn.0049ec02
add esp, 4
cmp dword [esp + 0x54], edi
jb 0x415c5a
mov eax, dword [esp + 0x40]
push eax
call fcn.0049ea7d
add esp, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jmp 0x415e5e
mov ecx, dword [0x4f11c0]
mov edx, dword [ecx + 4]
push ebx
push ebx
push 0x7d6
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00402b50
mov edi, dword [esp + 0x28]
mov ecx, dword [0x4f11c0]
mov eax, dword [ecx + 4]
push edi
lea ebp, [esi + 1]
push ebp
push 0x886
push eax
mov byte [esp + 0x74], 2
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, ebx
mov byte [edi + esi], bl
jne 0x415cd3
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x415df6
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x415d67
cmp eax, 2
je 0x415d67
cmp eax, 3
jne 0x415d55
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, edi
mov byte [esp + 0x64], 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415d00
sub eax, edx
lea eax, [eax + eax*2 + 1]
push eax
lea ecx, [esp + 0x24]
call fcn.00402b50
push ebx
mov esi, eax
push 0xffffffffffffffff
push esi
push edi
call fcn.0042b6d0
add esp, 0x10
push 3
push 0x4c8178
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.004014f0
push ebp
push esi
lea ecx, [esp + 0x20]
call fcn.004014f0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00402b20
jmp 0x415df2
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.004014f0
mov esi, eax
jmp 0x415df2
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00413530
mov ebp, dword [esp + 0x30]
push ebx
push 0xffffffffffffffff
push ebp
push edi
mov byte [esp + 0x74], 3
call fcn.0042b5b0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x10
cmp dword [esp + 0x70], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
push ebx
jne 0x415e39
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x4c8174
push edx
call esi
push 0xffffffffffffffff
push ebp
call fcn.0042b7e0
add esp, 8
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
push ebp
push edx
mov dword [esp + 0x28], ebx
call esi
cmp ebp, ebx
mov esi, dword [esp + 0x14]
je 0x415df2
push ebp
call fcn.0049ed7a
add esp, 4
cmp esi, ebx
jbe 0x415e51
cmp dword [esp + 0x74], ebx
jne 0x415e11
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
push ebx
push ebx
push 0x7de
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, ebx
je 0x415e1e
push edi
call fcn.0049ed7a
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], vtable.wpf::Reader.0
je 0x415e35
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x415e77
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 2
push 0x4c8170
push ecx
call esi
jmp 0x415dc7
cmp edi, ebx
je 0x415e5e
push edi
call fcn.0049ed7a
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], vtable.wpf::Reader.0
je 0x415e75
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0049ec31
add esp, 0x54
ret 0xc