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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e130
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x10086e84]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [0x10086d18]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebx, ebx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x3c], bx
call esi
mov ecx, dword [ebp + 8]
push ecx
mov word [ebp - 0x3c], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x100336ee
cmp dword [ebp + 8], ebx
je 0x100336ee
push 0x8007000e
mov word [ebp - 0x3c], 0xa
mov dword [ebp - 0x34], 0x8007000e
call fcn.100011df
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], bx
call esi
mov eax, dword [ebp + 0xc]
push eax
mov word [ebp - 0x2c], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x1003372e
cmp dword [ebp + 0xc], ebx
je 0x1003372e
push 0x8007000e
mov word [ebp - 0x2c], 0xa
mov dword [ebp - 0x24], 0x8007000e
call fcn.100011df
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dx, word [ebp + 0x10]
mov word [ebp - 0x5c], 2
mov word [ebp - 0x54], dx
mov eax, dword [edi + 0xcac]
cmp eax, dword [edi + 0xc94]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
jae 0x10033937
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc90]
push edx
push eax
mov dword [edi + 0xca4], 1
mov dword [ebp - 0x18], ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jge 0x100337ba
lea ecx, [ebp - 0x5c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0xcac]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0xc90]
push ecx
push edx
mov dword [ebp - 0x18], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jge 0x10033815
lea eax, [ebp - 0x5c]
push eax
call esi
lea ecx, [ebp - 0x4c]
push ecx
call esi
lea edx, [ebp - 0x2c]
push edx
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10033876
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10033846
and eax, 0xffff
or eax, 0x80070000
lea edx, [ebp - 0x5c]
push edx
mov edi, eax
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea ecx, [ebp - 0x2c]
push ecx
call esi
lea edx, [ebp - 0x3c]
push edx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp + 0xc], eax
call fcn.1003e542
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push eax
mov dword [ebp + 0x10], eax
call fcn.10042010
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push ebx
jne 0x1003390a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
call fcn.100421fa
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100338da
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
call esi
lea ecx, [ebp - 0x4c]
push ecx
call esi
lea edx, [ebp - 0x2c]
push edx
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x11
mov word [ebp - 0x4c], 0x2011
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x10033968
mov edx, dword [ebp + 0x10]
push edx
call fcn.100421fa
add esp, 4
lea eax, [ebp - 0x5c]
push eax
call esi
lea ecx, [ebp - 0x4c]
push ecx
call esi
lea edx, [ebp - 0x2c]
push edx
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
mov eax, 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ebx, eax
test ebx, ebx
jge 0x100339a0
mov edx, dword [ebp + 0x10]
push edx
call fcn.100421fa
add esp, 4
lea eax, [ebp - 0x5c]
push eax
call esi
lea ecx, [ebp - 0x4c]
push ecx
call esi
lea edx, [ebp - 0x2c]
push edx
call esi
lea eax, [ebp - 0x3c]
push eax
jmp 0x10033a46
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
push ecx
push ebx
push edx
call fcn.10042570
push ebx
call fcn.100421fa
mov eax, dword [ebp - 0x44]
add esp, 0x10
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test ebx, ebx
jl 0x10033a30
mov edx, dword [edi + 0xcac]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0xc90]
push ecx
push edx
mov dword [ebp - 0x18], 2
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov ebx, eax
test ebx, ebx
jl 0x10033985
mov eax, dword [edi + 0xcac]
mov dword [ebp - 0x1c], eax
add eax, 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x1c]
mov dword [edi + 0xcac], eax
mov eax, dword [edi + 0xc90]
push edx
push eax
mov dword [ebp - 0x18], 3
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov ebx, eax
test ebx, ebx
jge 0x10033a30
add dword [edi + 0xcac], 0xffffffff
lea ecx, [ebp - 0x5c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc