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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100948d3
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x100c2070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x1b0], ebx
lea eax, [ebp - 0x94]
xor esi, esi
push 0xffffffffffffffff
push dword [0x100c3540]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
xor eax, eax
mov word [ebp - 0x94], ax
call fcn.100258a0
mov dword [ebp - 4], esi
mov eax, dword [0x100c35c8]
cmp word [eax], si
je 0x10024e9f
cmp byte [ebp + 8], 0
je 0x10024d99
cmp byte [0x100c5cca], 0
je 0x10024cee
mov ebx, dword [0x100c5d1c]
jmp 0x10024d65
lea eax, [ebp - 0x11c]
push 0xffffffffffffffff
push dword [0x100c3540]
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x120]
xor eax, eax
mov word [ebp - 0x11c], ax
call fcn.100258a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
push dword [0x100c36d8]
call fcn.10025770
mov ecx, dword [ebp - 0x120]
xor edx, edx
push 2
call fcn.1005eda0
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
cmp eax, ecx
je 0x10024d5c
push eax
call fcn.10079c0c
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [0x100c35c8]
test ebx, ebx
je 0x10024d99
mov ecx, dword [ebp - 0x1b0]
mov edx, edi
push ebx
push 0
push 0
call fcn.10024f80
add esp, 0xc
mov esi, eax
cmp byte [0x100c5cca], 0
jne 0x10024f34
mov ecx, ebx
call fcn.1005ef40
jmp 0x10024f34
cmp byte [0x100c5cca], 0
je 0x10024db8
mov eax, dword [0x100c5d20]
mov ebx, dword [0x100c5d24]
mov dword [ebp - 0x1ac], eax
jmp 0x10024e5c
push eax
lea ecx, [ebp - 0x98]
call fcn.10025770
mov ecx, dword [ebp - 0x98]
xor edx, edx
push 2
call fcn.1005eda0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10024f72
lea eax, [ebp - 0x1a4]
push 0xffffffffffffffff
push dword [0x100c3540]
mov dword [ebp - 0x1a8], eax
lea ecx, [ebp - 0x1a8]
xor eax, eax
mov word [ebp - 0x1a4], ax
call fcn.100258a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a8]
push dword [0x100c3650]
call fcn.10025770
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
push 2
call fcn.1005eda0
add esp, 4
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a8]
cmp ecx, edx
je 0x10024e58
push ecx
call fcn.10079c0c
mov eax, dword [ebp - 0x1ac]
add esp, 4
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10024f72
mov ecx, dword [ebp - 0x1b0]
mov edx, edi
push 0
push eax
push ebx
call fcn.10024f80
add esp, 0xc
mov esi, eax
cmp byte [0x100c5cca], 0
jne 0x10024e99
mov ecx, ebx
call fcn.1005ef40
mov ecx, dword [ebp - 0x1ac]
test ecx, ecx
je 0x10024e99
call fcn.1005ef40
mov ebx, dword [ebp - 0x1b0]
cmp dword [edi], 0
jne 0x10024f34
test ebx, ebx
je 0x10024eb8
push ebx
lea ecx, [ebp - 0x98]
call fcn.10025770
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10024f34
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10024f2d
push esi
mov dword [ebp - 0x1ac], 0
call fcn.1006cf9e
add esp, 4
mov dword [edi], eax
lea ecx, [ebp - 0x1ac]
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1ac], esi
je 0x10024f2d
push dword [edi]
call fcn.1006c6da
add esp, 4
mov dword [edi], 0
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x10024f54
push eax
call fcn.10079c0c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006c6c9
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x10024f34