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

Disassembly:
push esi
push edi
add esp, 0xfffffcb0
mov esi, 0x4cdc24
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 [0x4d3344], 0
je 0x48d4df
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.00484d40
add esp, 0xc
push 0x106
lea ecx, [esp + 0x24c]
lea eax, [esp + 0x144]
mov dx, word [esp + 0x30]
call fcn.00491d6c
mov word [esp + 0x2e], ax
push 2
lea eax, [esp + 0x24c]
push eax
lea edx, [esp + 0x36]
push edx
call fcn.00484d40
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 0x48d6b2
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CreateFileA
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x48d50d
mov eax, 0xffffff37
jmp 0x48d6b2
push 0
push 0
push 0
mov edx, dword [esp + 0x2c]
push edx
call sub.kernel32.dll_SetFilePointer
push 0
push 0x4d310c
push 0x10
lea ecx, [esp + 0x3c]
push ecx
mov eax, dword [esp + 0x30]
push eax
call sub.kernel32.dll_ReadFile
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jne 0x48d554
mov edx, dword [esp + 0x20]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff34
jmp 0x48d6b2
lea edx, [esp + 0x28]
push edx
mov ecx, dword [esp + 0x24]
push ecx
call sub.kernel32.dll_GetFileSize
mov dword [esp + 0x28], eax
push 0
push 0
push 0x10
mov eax, dword [esp + 0x2c]
push eax
call sub.kernel32.dll_SetFilePointer
push 0x4d0b2e
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x48d67c
push 0
push 0x4d310c
push 1
push 0x4d3108
mov edx, dword [esp + 0x30]
push edx
call sub.kernel32.dll_ReadFile
mov dword [esp + 0x14], eax
cmp dword [0x4d310c], 0
je 0x48d68d
cmp dword [esp + 0x14], 0
jne 0x48d5e6
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff34
jmp 0x48d6b2
push 0x4d0b2e
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 0x4d0b15
lea ecx, [esp + 0x29]
mov edx, 0x4d3108
lea eax, [esp + 0x3c]
call fcn.00488908
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 0x48d65a
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x18]
jmp 0x48d6b2
mov dl, byte [0x4d3108]
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 0x48d598
mov ecx, dword [esp + 0x20]
push ecx
call sub.kernel32.dll_CloseHandle
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
xor eax, eax
add esp, 0x350
pop edi
pop esi
ret