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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x403a7c
call fcn.0040373c
xor eax, eax
push ebp
push 0x403db5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004038c0
mov edx, dword [ebp - 0x14]
mov eax, 0x415724
call fcn.00403018
xor eax, eax
push ebp
push 0x403d83
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402654
mov eax, dword [ebp - 0x18]
mov edx, 0x20
call fcn.004039b4
mov edi, eax
cmp edi, 0xffffffff
jne 0x403b44
call fcn.00402b1c
jmp 0x403d8a
xor eax, eax
push ebp
push 0x403d6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push edi
call sub.KERNEL32.DLL_GetFileSize
sub eax, 0x118
push eax
push edi
call sub.KERNEL32.DLL_SetFilePointer
push 0
push 0x41571c
push 0x118
push 0x415730
push edi
call sub.KERNEL32.DLL_ReadFile
cmp dword [0x415730], 0xfeedbeef
jne 0x403b99
cmp dword [0x41571c], 0x118
je 0x403bb6
call fcn.00402b1c
call fcn.00402b1c
jmp 0x403d8a
push 0
push 0
mov eax, dword [0x415738]
push eax
push edi
call sub.KERNEL32.DLL_SetFilePointer
jmp 0x403d36
push 0
push 0x41571c
push 0x118
push 0x415730
push edi
call sub.KERNEL32.DLL_ReadFile
cmp dword [0x415730], 0xfeedbeef
je 0x403c04
call fcn.00402b1c
call fcn.00402b1c
jmp 0x403d8a
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x118]
call fcn.004034b8
lea edx, [ebp - 0x118]
mov eax, 0x41572c
call main
push 0x403dcc
push dword [0x41572c]
push 0x403dd8
mov eax, 0x415728
mov edx, 3
call fcn.004031b4
push 0
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x11c]
mov ecx, dword [0x415728]
mov edx, dword [0x415724]
call fcn.00403140
mov eax, dword [ebp - 0x11c]
call fcn.00403a20
test al, al
jne 0x403c04
lea eax, [ebp - 0x120]
mov ecx, dword [0x415728]
mov edx, dword [0x415724]
call fcn.00403140
mov eax, dword [ebp - 0x120]
call fcn.004039f4
mov dword [0x415718], eax
mov ebx, dword [0x415738]
cmp ebx, 0x10000
jbe 0x403cb0
mov esi, 0x10000
jmp 0x403cb2
mov esi, ebx
push 0
push 0x41571c
push esi
push 0x405718
push edi
call sub.KERNEL32.DLL_ReadFile
push 0
push 0x415720
mov eax, dword [0x41571c]
push eax
push 0x405718
mov eax, dword [0x415718]
push eax
call sub.KERNEL32.DLL_WriteFile
sub ebx, dword [0x41571c]
cmp esi, dword [0x41571c]
jne 0x403cf4
test ebx, ebx
jne 0x403ca1
mov eax, dword [0x415718]
call fcn.00403a18
test ebx, ebx
jne 0x403d28
lea eax, [ebp - 0x124]
mov ecx, dword [0x415728]
mov edx, dword [0x415724]
call fcn.00403140
mov eax, dword [ebp - 0x124]
call fcn.00403918
test al, al
jne 0x403d36
mov eax, edi
call fcn.00403a18
xor eax, eax
call fcn.00402fac
push 1
push 0
push 0
push edi
call sub.KERNEL32.DLL_SetFilePointer
mov ebx, eax
push 0
push edi
call sub.KERNEL32.DLL_GetFileSize
sub eax, 0x118
cmp ebx, eax
jbe 0x403bcb
mov eax, edi
call fcn.00403a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d75
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dbc
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00402fe8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00402fe8
ret