Function at 0x5d2758
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca8
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x358]
mov word [ebp - 0xe], 0x10f
mov ecx, 0x82
mov esi, 0x6ab7ae
rep movsd dword es:[edi], dword [esi]
cmp dword [0x6cb42c], 0
je 0x5d28af
mov byte [ebp - 0x150], 8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x14f]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 2
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x4b]
push edx
call fcn.005cc0fc
add esp, 0xc
push 2
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x49]
push eax
call fcn.005cc0fc
add esp, 0xc
push 1
mov edx, dword [ebp + 0x1c]
push edx
lea ecx, [ebp - 0x47]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 1
mov eax, dword [ebp + 0x18]
push eax
lea edx, [ebp - 0x46]
push edx
call fcn.005cc0fc
add esp, 0xc
push 1
mov ecx, dword [ebp + 0x14]
push ecx
lea eax, [ebp - 0x45]
push eax
call fcn.005cc0fc
add esp, 0xc
push 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x44]
push ecx
call fcn.005cc0fc
add esp, 0xc
push 2
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x43]
push edx
call fcn.005cc0fc
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x150]
push 6
mov dx, word [ebp - 0xe]
call fcn.005d85c4
mov word [ebp - 0x10], ax
push 2
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.005cc0fc
add esp, 0xc
lea edx, [ebp - 0x16]
push 1
push edx
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.005cc0fc
add esp, 0xc
lea eax, [ebp - 0x15]
push 1
push eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.005cc0fc
add esp, 0xc
lea ecx, [ebp - 0x14]
push 1
push ecx
mov eax, dword [ebp + 0x14]
push eax
call fcn.005cc0fc
add esp, 0xc
lea edx, [ebp - 0x13]
push 1
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005cc0fc
movsx eax, word [ebp - 0x10]
add esp, 0xc
jmp 0x5d2a82
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
mov ecx, dword [ebp - 0x40]
push ecx
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x358]
mov edx, dword [ebp - 4]
call fcn.005d7af8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x358]
push ecx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x5d2905
mov eax, 0xffffff37
jmp 0x5d2a82
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.kernel32.dll_SetFilePointer_1
push 0x6aecca
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x5d2a26
lea edx, [ebp - 0x2c]
push 0
push edx
lea ecx, [ebp - 0x34]
push 8
push ecx
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5d297c
mov edx, dword [ebp - 0x3c]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x38]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x5d2a82
push 0xffffffffffffffff
mov edx, dword [ebp - 0x38]
push edx
call sub.kernel32.dll_WaitForSingleObject
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x34]
push ecx
mov eax, 0x6cb1fc
mov ecx, dword [ebp - 0x24]
shl ecx, 3
add ecx, dword [ebp - 0x1c]
call fcn.005cfb30
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5d29ea
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x34]
push eax
mov eax, 0x6cb1fc
mov ecx, dword [ebp - 0x24]
shl ecx, 3
add ecx, dword [ebp - 0x1c]
call fcn.005cfb30
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5d29ea
mov edx, dword [ebp + 0xc]
mov eax, 0x6cb1fc
push edx
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
shl ecx, 3
add ecx, dword [ebp - 0x1c]
call fcn.005cfb30
mov dword [ebp - 0x20], eax
push 0
push 1
mov ecx, dword [ebp - 0x38]
push ecx
call sub.kernel32.dll_ReleaseSemaphore
cmp dword [ebp - 0x20], 0
je 0x5d2a23
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov ecx, dword [ebp - 0x40]
push ecx
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x20]
jmp 0x5d2a82
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
test edx, edx
jns 0x5d2a30
add edx, 7
sar edx, 3
cmp edx, dword [ebp - 0x24]
jg 0x5d2933
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x1c]
call fcn.005d6a2c
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov edx, dword [ebp - 0x40]
push edx
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18