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

Disassembly:
push esi
push edi
add esp, 0xfffffcb0
mov esi, 0x6abdc0
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 [0x6cb42c], 0
je 0x5d3d43
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.005cc0fc
add esp, 0xc
push 0x106
lea ecx, [esp + 0x24c]
lea eax, [esp + 0x144]
mov dx, word [esp + 0x30]
call fcn.005d85c4
mov word [esp + 0x2e], ax
push 2
lea eax, [esp + 0x24c]
push eax
lea edx, [esp + 0x36]
push edx
call fcn.005cc0fc
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 0x5d3f16
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 0x5d3d71
mov eax, 0xffffff37
jmp 0x5d3f16
push 0
push 0
push 0
mov edx, dword [esp + 0x2c]
push edx
call sub.kernel32.dll_SetFilePointer_1
push 0
push 0x6cb1f0
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 0x5d3db8
mov edx, dword [esp + 0x20]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x5d3f16
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 0x6aecca
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x5d3ee0
push 0
push 0x6cb1f0
push 1
push 0x6cb1ec
mov edx, dword [esp + 0x30]
push edx
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x14], eax
cmp dword [0x6cb1f0], 0
je 0x5d3ef1
cmp dword [esp + 0x14], 0
jne 0x5d3e4a
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 0x5d3f16
push 0x6aecca
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 0x6aecb1
lea ecx, [esp + 0x29]
mov edx, 0x6cb1ec
lea eax, [esp + 0x3c]
call fcn.005cfcc4
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 0x5d3ebe
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 0x5d3f16
mov dl, byte [0x6cb1ec]
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 0x5d3dfc
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