Function at 0x1003f2d
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x100e03c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push 0x1001348
lea eax, [ebp - 0x108]
push 0x104
xor ebx, ebx
push eax
mov dword [ebp - 0x900], ecx
mov dword [ebp - 0x904], edx
mov dword [ebp - 0x8f4], ebx
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
push ebx
push 0x10000080
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x8f8], eax
jne 0x1003fb3
mov dword [ebp - 0x8f4], 0x80004005
jmp 0x10041fd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1003fcf
mov dword [ebp - 0x8f4], 0x800c006b
jmp 0x10041e9
cmp eax, 0x19000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jb 0x100401b
push ebx
push ebx
push ebx
push dword [ebp - 0x8f8]
call esi
cmp eax, 0xffffffff
jne 0x1003ffc
mov dword [ebp - 0x8f4], 0x800c0073
jmp 0x10041e8
push dword [ebp - 0x8f8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100401b
mov dword [ebp - 0x8f4], 0x800c007c
jmp 0x10041e8
push 2
push ebx
push ebx
push dword [ebp - 0x8f8]
call esi
cmp eax, 0xffffffff
je 0x1003fed
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea eax, [ebp - 0x8fc]
push eax
push edi
call esi
push eax
push edi
push dword [ebp - 0x8f8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
jne 0x1004060
mov dword [ebp - 0x8f4], 0x800c0074
jmp 0x10041e8
push ebx
lea eax, [ebp - 0x8fc]
push eax
push 0x1001344
call esi
push eax
push 0x1001344
push dword [ebp - 0x8f8]
call edi
test eax, eax
je 0x1004051
lea eax, [ebp - 0x914]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x908]
push eax
movzx eax, word [ebp - 0x90a]
push eax
movzx eax, word [ebp - 0x90c]
push eax
movzx eax, word [ebp - 0x914]
push eax
movzx eax, word [ebp - 0x90e]
push eax
movzx eax, word [ebp - 0x912]
push eax
push 0x100131c
lea eax, [ebp - 0x8f0]
push 0x7e8
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x24
push ebx
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x8f0]
push eax
call esi
push eax
lea eax, [ebp - 0x8f0]
push eax
push dword [ebp - 0x8f8]
call edi
test eax, eax
je 0x1004051
push dword [ebp + 0xc]
lea eax, [ebp - 0x8f0]
push dword [ebp + 8]
push dword [ebp - 0x900]
push 0x10012c8
push 0x7e8
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x18
push ebx
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x8f0]
push eax
call esi
push eax
lea eax, [ebp - 0x8f0]
push eax
push dword [ebp - 0x8f8]
call edi
test eax, eax
je 0x1004051
mov ebx, dword [ebp - 0x904]
jmp 0x10041ba
push ebx
push dword [ebx + 0x618]
lea eax, [ebp - 0x8f0]
push dword [ebx + 0x614]
push dword [ebx + 0x610]
push dword [ebx + 0x620]
push dword [ebx + 0x61c]
push 0x1001260
push 0x7e8
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x24
push 0
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x8f0]
push eax
call esi
push eax
lea eax, [ebp - 0x8f0]
push eax
push dword [ebp - 0x8f8]
call edi
test eax, eax
je 0x10041dc
mov ebx, dword [ebx + 0x648]
test ebx, ebx
jne 0x1004156
push ebx
lea eax, [ebp - 0x8fc]
push eax
mov ebx, 0x1001258
push ebx
call esi
push eax
push ebx
push dword [ebp - 0x8f8]
call edi
test eax, eax
jne 0x10041e6
mov dword [ebp - 0x8f4], 0x800c0074
xor ebx, ebx
pop esi
cmp dword [ebp - 0x8f8], ebx
je 0x10041fd
push dword [ebp - 0x8f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8f4]
pop edi
pop ebx
call fcn.010086b7
leave
ret 0x18