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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
jne 0x407398
movsx eax, word [0x42eae0]
add eax, 1
push eax
push str.c:my_programsccommonqresource.cpp
push str.pEFSFile
call fcn.00401005
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4073b8
movsx eax, word [0x42eae0]
add eax, 2
push eax
push str.c:my_programsccommonqresource.cpp
push str.hFile___INVALID_HANDLE_VALUE
call fcn.00401005
cmp dword [ebp + 0x10], 0
jne 0x4073d8
movsx eax, word [0x42eae0]
add eax, 3
push eax
push str.c:my_programsccommonqresource.cpp
push str.pDirEntry
call fcn.00401005
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407414
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x10], 0
mov eax, 1
jmp 0x4075bb
cmp dword [ebp - 4], 0x80000
jae 0x407425
mov eax, dword [ebp - 4]
mov dword [ebp - 0x68], eax
jmp 0x40742c
mov dword [ebp - 0x68], 0x80000
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push eax
call fcn.00409b50
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
je 0x4075b8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40754c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jae 0x407488
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x68], ecx
jmp 0x40748e
mov edx, dword [ebp - 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x4074dc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jae 0x4074de
jmp 0x40754c
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x40752a
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jae 0x40752c
jmp 0x40754c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x40746e
cmp dword [ebp - 0x1c], 0
jne 0x407570
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x10], 1
jmp 0x4075ac
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040a5d0
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
add esp, 0x68
cmp ebp, esp
call fcn.00409560
mov esp, ebp
pop ebp
ret