Function at 0x6d2ed8
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
push edi
add esp, 0xfffffcb0
mov esi, 0x6ecb40
mov ecx, 0x3f
mov dword [esp + 4], edx
mov dword [esp], eax
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp dword [0x6f5838], 0
je 0x6d2f8b
mov word [esp + 0x2c], 0x105
mov byte [esp + 0x140], 0x14
mov eax, dword [esp]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [esp + 4]
push edx
lea ecx, [esp + 0x149]
push ecx
call fcn.006cb33c
add esp, 0xc
push 0x106
lea ecx, [esp + 0x24c]
lea eax, [esp + 0x144]
mov dx, word [esp + 0x30]
call fcn.006d780c
mov word [esp + 0x2e], ax
push 2
lea eax, [esp + 0x24c]
push eax
lea edx, [esp + 0x36]
push edx
call fcn.006cb33c
add esp, 0xc
lea ecx, [esp + 0x24a]
push ecx
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
movsx eax, word [esp + 0x2e]
jmp 0x6d315e
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x6d2fb9
mov eax, 0xffffff37
jmp 0x6d315e
push 0
push 0
push 0
mov edx, dword [esp + 0x2c]
push edx
call sub.kernel32.dll_SetFilePointer_1
push 0
push 0x6f55fc
push 0x10
lea ecx, [esp + 0x3c]
push ecx
mov eax, dword [esp + 0x30]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jne 0x6d3000
mov edx, dword [esp + 0x20]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x6d315e
lea edx, [esp + 0x28]
push edx
mov ecx, dword [esp + 0x24]
push ecx
call sub.kernel32.dll_GetFileSize_1
mov dword [esp + 0x28], eax
push 0
push 0
push 0x10
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0x6efa45
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x6d3128
push 0
push 0x6f55fc
push 1
push 0x6f55f8
mov edx, dword [esp + 0x30]
push edx
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x14], eax
cmp dword [0x6f55fc], 0
je 0x6d3139
cmp dword [esp + 0x14], 0
jne 0x6d3092
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x6d315e
push 0x6efa45
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
mov edx, dword [esp + 0x10]
push edx
call sub.kernel32.dll_WaitForSingleObject
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x22]
push eax
push 0x6efa31
lea ecx, [esp + 0x29]
mov edx, 0x6f55f8
lea eax, [esp + 0x3c]
call fcn.006cef04
mov dword [esp + 0x18], eax
push 0
push 1
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_ReleaseSemaphore
cmp dword [esp + 0x18], 0
je 0x6d3106
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x18]
jmp 0x6d315e
mov dl, byte [0x6f55f8]
lea ecx, [esp + 8]
mov byte [esp + 8], dl
mov byte [esp + 9], 0
push ecx
lea eax, [esp + 0x44]
push eax
call sub.kernel32.dll_lstrcatA
inc dword [esp + 0x10]
mov edx, dword [esp + 0x28]
sub edx, 0x10
cmp edx, dword [esp + 0x10]
jae 0x6d3044
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 0x40]
push eax
mov edx, dword [esp + 8]
push edx
call sub.kernel32.dll_lstrcpyA
mov ecx, dword [esp + 0xc]
push ecx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
add esp, 0x350
pop edi
pop esi
ret