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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x4150e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4150c5
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x414c50]
call fcn.00404408
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], eax
test ebx, ebx
jl 0x414f99
inc ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], 0
mov ebx, esi
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [ebp - 0x30]
lea esi, [edx + eax*4]
mov eax, dword [ebp + 8]
call fcn.0040424c
cmp eax, dword [ebp - 0xc]
jg 0x414d46
mov eax, esi
mov edx, dword [ebx]
call fcn.00403648
mov eax, dword [esi]
call fcn.00403810
cmp eax, 1
jl 0x414d56
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
jne 0x414d3f
mov edx, esi
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00403a54
jmp 0x414d56
dec eax
test eax, eax
jne 0x414d25
jmp 0x414d56
mov eax, esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
call fcn.00403648
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebx]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x414f84
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414f7e
imul eax, dword [ebp - 0x2c], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x414f75
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x414f6c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jne 0x414f6c
mov dword [ebp - 0x56], 0x4034b50
mov word [ebp - 0x52], 0x14
mov word [ebp - 0x50], 0
mov word [ebp - 0x4e], 8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
call fcn.00414c08
not eax
mov dword [ebp - 0x48], eax
imul eax, dword [ebp - 0x2c], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00414afc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi]
call fcn.00403810
mov word [ebp - 0x3c], ax
mov word [ebp - 0x3a], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToDosDateTime
lea eax, [esi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 0x2014b50
mov eax, dword [ebp - 0x38]
mov word [eax + 4], 0x14
mov eax, dword [ebp - 0x38]
push esi
push edi
lea edi, [eax + 6]
lea esi, [ebp - 0x52]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x38]
mov word [eax + 0x20], 0
mov eax, dword [ebp - 0x38]
mov word [eax + 0x22], 0
mov eax, dword [ebp - 0x38]
mov word [eax + 0x24], 0
mov eax, dword [ebx]
call fcn.004039d4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x26], eax
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x2a], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0x1e
lea eax, [ebp - 0x56]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x414f60
cmp dword [ebp - 0x20], 0x1e
jne 0x414f60
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
call fcn.00403810
push eax
mov eax, dword [esi]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x414f60
mov eax, dword [esi]
call fcn.00403810
cmp eax, dword [ebp - 0x20]
jne 0x414f60
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x414f60
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x44]
je 0x414f64
xor eax, eax
jmp 0x414f66
mov al, 1
mov byte [ebp - 5], al
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LocalFree_1
push edi
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 5], 0
je 0x414f99
inc dword [ebp - 0xc]
add ebx, 4
dec dword [ebp - 0x34]
jne 0x414cf9
cmp byte [ebp - 5], 0
je 0x414fa5
cmp dword [ebp - 0x10], 0
jg 0x414fa9
xor eax, eax
jmp 0x414fab
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4150a8
mov dword [ebp - 0x6c], 0x6054b50
mov word [ebp - 0x68], 0
mov word [ebp - 0x66], 0
mov ax, word [ebp - 0x10]
mov word [ebp - 0x64], ax
mov word [ebp - 0x62], ax
xor eax, eax
mov dword [ebp - 0x60], eax
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], 0
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x41507a
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 0x30]
lea ebx, [edx + eax*4]
mov eax, dword [ebx]
call fcn.00403810
add eax, 0x2e
add dword [ebp - 0x60], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0x2e
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41506c
cmp dword [ebp - 0x20], 0x2e
jne 0x41506c
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx]
call fcn.00403810
push eax
mov eax, dword [ebx]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41506c
mov eax, dword [ebx]
call fcn.00403810
cmp eax, dword [ebp - 0x20]
je 0x415072
mov byte [ebp - 5], 0
jmp 0x41507a
inc dword [ebp - 0xc]
dec dword [ebp - 0x34]
jne 0x415007
cmp byte [ebp - 5], 0
je 0x41509f
push 0
lea eax, [ebp - 0x20]
push eax
push 0x16
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41509f
cmp dword [ebp - 0x20], 0x16
je 0x4150a3
xor eax, eax
jmp 0x4150a5
mov al, 1
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 5], 0
jne 0x4150c5
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4150f0
lea eax, [ebp - 0x30]
mov edx, dword [0x414c50]
call fcn.0040451c
lea eax, [ebp - 4]
call fcn.004035f4
ret