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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10004f5b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._1.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._111.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10004f54
mov eax, dword [ebp - 4]
push eax
push str.GetDiskBlobFromFile._112.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
jmp 0x10004f5b
xor eax, eax
jmp 0x1000544b
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10004f7e
cmp dword [ebp - 0x10], 0
jne 0x10004fdf
cmp dword [ebp - 8], 0
jne 0x10004fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GetDiskBlobFromFile._112.__s.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x1c
cmp dword [ebp - 0x1c], 0
jne 0x10004fc4
cmp dword [ebp - 0x10], 0
jne 0x10004fc4
cmp dword [ebp - 8], 0
jne 0x10004fc4
mov dword [ebp - 0x1c], 0x570
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GetDiskBlobFromFile._2.__s.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x1c
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 8], 0
jne 0x10005034
cmp dword [ebp - 8], 0
jne 0x1000502b
cmp dword [ebp - 0x10], 0x7fffffff
jae 0x10005034
mov dword [ebp - 0x24], 0
jmp 0x1000503a
lea eax, [ebp - 8]
mov dword [ebp - 0x24], eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100050a8
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100050a8
cmp dword [ebp - 0x10], 4
jne 0x100050a8
push 4
push str.DPDL
lea ecx, [ebp - 0x18]
push ecx
call fcn.1001eae0
add esp, 0xc
test eax, eax
je 0x1000510a
push 4
push str.ASSB
lea edx, [ebp - 0x18]
push edx
call fcn.1001eae0
add esp, 0xc
test eax, eax
je 0x1000510a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._3.__08X.__08X.__08X.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x100050f9
cmp dword [ebp - 0x10], 4
jne 0x100050f9
mov dword [ebp - 0x1c], 0x570
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005131
cmp dword [ebp - 0x10], 4
je 0x10005174
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._4.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.GetDiskBlobFromFile._5.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jbe 0x100051d4
push str.GetDiskBlobFromFile._5a.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1000522e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._6.__08X.__08
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
mov ecx, dword [ebp - 0x18]
add ecx, 8
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.GetDiskBlobFromFile._7.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x18
mov eax, dword [ebp - 0x10]
sub eax, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x10005289
cmp dword [ebp - 0xc], 0
jne 0x10005280
cmp dword [ebp - 0x14], 0x7fffffff
jae 0x10005289
mov dword [ebp - 0x28], 0
jmp 0x1000528f
lea edx, [ebp - 0xc]
mov dword [ebp - 0x28], edx
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000530d
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000530d
cmp dword [ebp - 0x14], 4
jne 0x1000530d
push 4
push str.ARC:
lea eax, [ebp - 0x20]
push eax
call fcn.1001eae0
add esp, 0xc
test eax, eax
jne 0x1000530d
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000530d
cmp dword [ebp - 0x14], 4
je 0x10005314
mov dword [ebp - 0x20], 0
cmp dword [ebp - 8], 0
jne 0x10005332
cmp dword [ebp - 8], 0
jne 0x10005329
cmp dword [ebp - 0x10], 0x7fffffff
jae 0x10005332
mov dword [ebp - 0x2c], 0
jmp 0x10005338
lea ecx, [ebp - 8]
mov dword [ebp - 0x2c], ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000537f
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000537f
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
je 0x100053c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobFromFile._8.__08X.__08
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x18
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000544b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str.GetDiskBlobFromFile._9.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
cmp dword [ebp - 0x20], 0
je 0x1000542e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.10004e30
add esp, 8
cmp dword [ebp - 0x20], eax
je 0x1000542e
mov ecx, dword [ebp - 0x20]
push ecx
push str.GetDiskBlobFromFile._9a.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
push str.GetDiskBlobFromFile._10.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8