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

Disassembly:
push 0xffffffffffffffff
push 0x1007bd86
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.1006a730
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0x1074]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1084]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push eax
mov esi, ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x107c], ebx
cmp edi, ebx
je 0x10002b57
cmp edi, 0xffffffff
jne 0x10002b7c
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x10083c5f
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10009130
cmp edi, 0xffffffff
je 0x10002be5
cmp edi, ebx
je 0x10002be5
jmp 0x10002bde
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x100f
lea ecx, [esp + 0x61]
push ebx
push ecx
mov ebp, eax
mov byte [esp + 0x68], bl
call fcn.10062cf0
add esp, 0xc
mov dword [esp + 0x14], ebx
push ebx
cmp ebp, 0x1000
ja 0x10002c0f
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002bd2
cmp dword [esp + 0x14], ebp
je 0x10002c73
push 0x10083c5f
mov ecx, esi
call fcn.10007750
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x1074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1058]
xor ecx, esp
call fcn.1005ebcb
add esp, 0x106c
ret
lea ecx, [esp + 0x18]
push ecx
push 0x800
lea edx, [esp + 0x68]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002bd2
cmp dword [esp + 0x14], 0x800
jne 0x10002bd2
push ebx
push ebx
lea eax, [ebp - 0x800]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x800
lea edx, [esp + 0x868]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002d15
cmp dword [esp + 0x14], 0x800
jne 0x10002d15
xor eax, eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
mov eax, dword [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x44]
push str._08x_08x
push ecx
mov byte [esp + 0x4c], bl
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1070], eax
mov dword [esp + 0x106c], edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x30]
mov dword [esp + 0x1074], ecx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x107c], edx
call fcn.10053f7f
add esp, 0x14
push 0x20
mov ecx, 0xa
mov edx, eax
mov byte [esp + 0x1080], 1
call fcn.100077f0
lea ecx, [esp + 0x20]
call fcn.100077c0
jmp 0x10002bde
push 0x10083c5f
mov ecx, esi
call fcn.10007750
lea ecx, [esp + 0x18]
call fcn.10001340
jmp 0x10002be5