Function at 0x404b07
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [0x420b44], edi
mov dword [ebp - 0x14], edi
jle 0x404b88
mov ebx, 0x423ac0
push dword [ebx]
push dword [ebp + 0x10]
call fcn.004139a0
pop ecx
test eax, eax
pop ecx
je 0x404b45
inc esi
add ebx, 4
cmp esi, dword [0x420b44]
jl 0x404b27
jmp 0x404b88
mov eax, esi
shl eax, 2
mov ecx, dword [eax + 0x422c20]
mov esi, dword [eax + 0x423820]
mov eax, dword [eax + 0x422da0]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], esi
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x404b83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp esi, 0xffffffff
jne 0x404b90
push 0xfffffffffffffffe
pop eax
jmp 0x404ddb
push dword [ebp + 0x14]
lea eax, [ebp - 0x227]
mov dword [0x423808], edi
mov byte [ebp - 0x228], 0xa
push eax
call fcn.00413500
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push eax
push 0x82
push dword [0x420b04]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call fcn.004014ce
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
pop ecx
je 0x404bf9
cmp word [eax], di
je 0x404bf9
mov esi, 0x80
push edi
push esi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x404c0f
mov esi, 0x80
push edi
push esi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x404b88
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 4]
je 0x404c30
push 0xfffffffffffffffe
jmp 0x404c74
push edi
push esi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0x14]
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x404c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x404c72
push dword [0x420b04]
push esi
push 0x41c78c
push dword [ebp + 0x14]
call fcn.0040b467
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x404c85
push 0xfffffffffffffffd
pop esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x404ddb
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 0x18]
push ebx
mov dword [ebp - 4], ebx
push dword [esi]
call fcn.0040179d
add dword [esi], ebx
mov esi, 0x8000
push esi
mov dword [ebp + 8], edi
call fcn.00413c32
add esp, 0xc
mov dword [ebp + 0x18], eax
call section..text
cmp dword [0x423808], edi
jne 0x404d5d
mov eax, dword [ebp - 4]
cmp eax, esi
jl 0x404cc6
mov eax, esi
lea ecx, [ebp - 8]
push edi
push ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x404dac
cmp ebx, esi
jle 0x404d0d
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fmul qword [0x41a378]
fidiv dword [ebp - 0xc]
call fcn.00413640
push eax
call fcn.004014ce
pop ecx
lea eax, [ebp - 0x28]
push edi
push eax
push dword [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
je 0x404dac
mov eax, dword [ebp - 8]
add dword [ebp + 8], eax
sub dword [ebp - 4], eax
cmp ebx, edi
jle 0x404d4e
fild dword [ebp + 8]
fmul qword [0x41a378]
fidiv dword [ebp - 0xc]
call fcn.00413640
push eax
call fcn.004014ce
pop ecx
cmp dword [ebp - 8], esi
jne 0x404d7b
cmp dword [ebp - 4], edi
jle 0x404d7b
jmp 0x404cac
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xfffffffffffffffc
pop edi
jmp 0x404d9f
cmp dword [ebp - 0x14], edi
je 0x404d8f
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x18]
call fcn.00413bc9
pop ecx
mov eax, edi
jmp 0x404ddb
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x18]
call fcn.00413bc9
mov eax, dword [ebp - 0x10]
pop ecx
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffb
pop edi
pop esi
pop ebx
leave
ret