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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 2
pop ebx
xor edi, edi
mov esi, 0xea60
push esi
push edi
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], ebx
call fcn.01012b8d
call fcn.01036a72
test eax, eax
je 0x102482f
lea eax, [ebp - 0x10]
push eax
call fcn.01036657
test eax, eax
jne 0x1024827
cmp dword [ebp - 0x10], edi
je 0x1024827
push edi
call fcn.0103673a
push esi
push edi
push ebx
call fcn.01012b8d
push 4
lea eax, [ebp - 0x48]
push eax
call fcn.010241a2
push esi
push edi
push ebx
call fcn.01012b8d
push 4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.01034d2a
test eax, eax
jne 0x1024860
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102494a
push esi
push edi
push ebx
call fcn.01012b8d
call fcn.01028218
test eax, eax
je 0x102490a
call fcn.01028384
test eax, eax
je 0x102490a
push esi
push edi
push ebx
call fcn.01012b8d
push edi
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [reloc.msvcrt.dll___p__fmode], eax
je 0x102490a
push 4
call fcn.01037df2
cmp eax, edi
mov dword [ebp - 8], eax
je 0x102490a
push 0x1002f24
push 0x3c
push edi
push 0x8000004
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [reloc.msvcrt.dll___p__fmode], eax
je 0x102496a
push dword [ebp - 8]
call fcn.01038001
push esi
push edi
push ebx
call fcn.01012b8d
push edi
push edi
push edi
push ebx
push dword [0x104058c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [reloc.msvcrt.dll___p__fmode], eax
je 0x102490a
push 0x100000
call fcn.01037df2
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x1024952
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x18
pop eax
call fcn.01032130
mov esi, esp
cmp esi, edi
je 0x1024933
push dword [ebp - 4]
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
push 0xc0007d29
push 1
push 1
push 1
call fcn.01034ce2
add esp, 0x14
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
push 0x1002ea8
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [reloc.msvcrt.dll___p__fmode], eax
jne 0x102497d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call fcn.01038001
jmp 0x1024913
push dword [ebp - 8]
call fcn.01038001
push esi
push edi
push ebx
call fcn.01012b8d
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0xc]
push eax
call fcn.01024621
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1024947
push esi
push edi
push ebx
call fcn.01012b8d
call fcn.01016030
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10249fb
push 0x18
pop eax
call fcn.01032130
cmp esp, edi
mov dword [ebp - 8], esp
je 0x10249e5
push dword [ebp - 4]
push 0x10017e4
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push dword [ebp - 8]
push 0xc0007d3c
push 1
push 1
push 1
call fcn.01034ce2
add esp, 0x14
push esi
push edi
push ebx
call fcn.01012b8d
call fcn.0102aebc
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1024a3a
push 0x18
pop eax
call fcn.01032130
mov esi, esp
cmp esi, edi
je 0x1024a2f
push dword [ebp - 4]
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
push 0xc0007d2c
jmp 0x1024939
push esi
push edi
push ebx
call fcn.01012b8d
mov ecx, dword [reloc.msvcrt.dll___p__fmode]
call fcn.0102c0ac
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1024913
push esi
push edi
push ebx
call fcn.01012b8d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x28]
mov dword [reloc.msvcrt.dll___p__fmode], ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push 0x10243d1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1024947
push 0x4e20
push edi
push ebx
call fcn.01012b8d
mov dword [ebp - 0x10], edi
mov esi, 0x2710
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1024adf
cmp eax, 0x102
jne 0x1024b62
mov eax, dword [reloc.msvcrt.dll___p__fmode]
add dword [ebp - 0x10], esi
imul eax, eax, 0x7530
cmp dword [ebp - 0x10], eax
jg 0x1024b5b
push 0x7530
push edi
push ebx
call fcn.01012b8d
jmp 0x1024a9e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1024b62
mov esi, dword [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jne 0x1024947
push 0x40007d01
push edi
push 3
push 1
call fcn.01034ce2
add esp, 0x10
push dword [0x10400f4]
push 0x1002e90
call fcn.01012de4
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1024913
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x1024613
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [reloc.msvcrt.dll___p__fmode], eax
je 0x1024913
xor eax, eax
jmp 0x102494a
mov dword [ebp - 4], reloc.msvcrt.dll___p__fmode
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1024947