Function at 0x40423b
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1060
call fcn.0040ca60
or dword [ebp - 0x4c], 0xffffffff
or dword [ebp - 0x48], 0xffffffff
push ebx
push esi
xor ebx, ebx
mov al, 0xff
push edi
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], bl
call fcn.0040c9e4
mov esi, dword [ebp + 8]
mov dword [0x41e69c], eax
push dword [esi + 0x400]
lea eax, [esi + 0x200]
mov dword [ebp - 0x18], eax
push eax
call fcn.00403d67
pop ecx
test eax, eax
pop ecx
je 0x40435f
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
push ebx
push edi
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call esi
or esi, 0xffffffff
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
jne 0x4042e7
call fcn.00403b17
jmp 0x4042f0
cmp eax, esi
jne 0x4042f7
call fcn.00403b96
mov eax, esi
jmp 0x404579
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x1060]
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 3
lea edi, [ebp - 0x1060]
pop ecx
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x40433a
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], 0x118
mov dword [ebp - 8], 0x920
jmp 0x404392
movsx eax, byte [ebp - 0x1051]
dec eax
je 0x40437a
dec eax
je 0x404367
push 0x10
push ebx
push 0x39
call fcn.0040a18d
pop ecx
push eax
push dword [0x41e6ac]
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x404579
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], 0x118
jmp 0x40438b
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], 0x120
mov dword [ebp - 8], 0x930
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
xor esi, esi
push dword [ebp - 0x54]
call fcn.004022dd
pop ecx
pop ecx
push esi
push dword [ebp - 8]
push edx
push eax
call fcn.0040cad0
push edx
push eax
push esi
mov dword [ebp - 0x30], eax
push dword [ebp - 8]
mov dword [ebp - 0x2c], edx
call fcn.0040ca90
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
fild qword [ebp - 0x40]
push ebx
push ebx
push ebx
push dword [ebp - 4]
fstp qword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004022f0
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
jb 0x404511
ja 0x404413
cmp dword [ebp - 0x30], ebx
jbe 0x404511
push 1
push ebx
push dword [ebp - 0x50]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x44]
push ebx
push eax
mov esi, 0x800
lea eax, [ebp - 0x1060]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x1060]
push esi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
push ebx
push dword [ebp - 0x28]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x64
jle 0x4044e1
mov esi, dword [ebp - 0x20]
push ebx
add esi, 1
push 0x3e8
adc edi, ebx
push edi
push esi
call fcn.0040ca90
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edx
push eax
call fcn.0040cad0
cmp dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ebx
jne 0x4044a0
cmp dword [ebp - 0x48], edx
je 0x4044e1
mov eax, dword [ebp + 8]
push ebx
fld qword [ebp - 0x10]
push dword [eax + 0x400]
xor eax, eax
push ecx
push ecx
fstp qword [esp]
push eax
push dword [ebp - 8]
push edi
push esi
call fcn.0040ca90
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
fild qword [ebp - 0x5c]
push ecx
push ecx
fstp qword [esp]
call fcn.00403f50
mov eax, dword [ebp - 0x40]
add esp, 0x18
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
cmp dword [0x41e6b8], ebx
jne 0x40450e
add dword [ebp - 0x20], 1
mov edi, dword [ebp - 0x1c]
adc edi, ebx
cmp edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
jb 0x404413
ja 0x404511
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jb 0x404413
jmp 0x404511
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
cmp dword [0x41e6b8], ebx
je 0x404538
mov eax, dword [ebp + 8]
add eax, 0x200
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
push 1
fld qword [ebp - 0x10]
push dword [eax + 0x400]
push ecx
push ecx
mov ecx, dword [ebp - 0x20]
fstp qword [esp]
add ecx, 1
adc edi, ebx
xor eax, eax
push eax
push dword [ebp - 8]
push edi
push ecx
call fcn.0040ca90
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
fild qword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.00403f50
add esp, 0x18
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret