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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1244
call fcn.1001e400
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1240], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
cmp esi, 0xffffffff
jne 0x100192b6
lea ecx, [esp + 0x230]
push ecx
push str..GLOBALROOTArcNamemulti_0_disk_0_rdisk_0_partition_1_
call sym.dcapi.dll_dc_get_drive_info
add esp, 8
cmp eax, edi
jne 0x100192a9
cmp dword [esp + 0x234], 2
ja 0x100192a9
mov esi, dword [esp + 0x248]
jmp 0x100192ae
mov eax, 0x1c
cmp eax, edi
jne 0x10019446
push edi
cmp ebx, edi
je 0x10019310
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100192f0
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1240]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x10019306
cmp esi, 0x200000
jle 0x10019363
mov edi, 0x16
jmp 0x1001941a
push esi
call sym.dcapi.dll_dc_disk_open
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
cmp esi, edi
jne 0x1001933d
mov eax, 0xd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1240]
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.10017dd0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1001942d
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1001937f
lea edi, [eax + 9]
jmp 0x1001941a
test ebx, ebx
je 0x100193a0
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x30]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100193c3
lea edi, [eax + 0xf]
jmp 0x1001940c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push ecx
push edx
push esi
push edi
push eax
call sym.dcapi.dll_dc_disk_read
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1001940c
mov edi, dword [esp + 0x10]
mov ecx, esi
mov eax, edi
cmp esi, 0x5c8
jbe 0x100193f6
mov edx, 0x7269da46
cmp dword [eax], 0x1434a669
jne 0x100193e1
cmp dword [eax + 4], edx
je 0x100193f2
dec ecx
inc eax
cmp ecx, 0x5c8
ja 0x100193d4
mov edi, 0x17
jmp 0x1001940c
test eax, eax
jne 0x100193fd
mov edi, 0x17
jmp 0x1001940c
mov edi, dword [esp + 0x1c]
mov ecx, 0x172
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10019429
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10019444
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x124c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret