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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x1269613
cmp dword [ebp + 0xc], ebx
je 0x1269613
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x12693a3
call fcn.012593f3
lea eax, [ebp - 8]
push eax
push 0x102cf1c
push 0x17
push ebx
push 0x102c2dc
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x126963e
cmp dword [ebp - 8], ebx
je 0x1269613
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0114139d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea esi, [ebp - 4]
push esi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + pe_nt_image_headers32]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp esi, ebx
jl 0x126963e
cmp word [ebp - 4], bx
jne 0x12695e2
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
je 0x1269443
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1269477
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269455
call esi
mov esi, eax
jmp 0x1269465
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0xc]
call fcn.01082eef
mov eax, dword [ebp - 8]
test eax, eax
jmp 0x1269643
lea eax, [esi + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x12694a6
lea ecx, [ebp - 0xc]
call fcn.01082eef
mov eax, dword [ebp - 8]
test eax, eax
je 0x126949c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x1269668
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x12694e4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12694cb
call esi
mov esi, eax
jmp 0x12694db
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1269465
cmp esi, 2
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
mov eax, dword [0x12d1c68]
mov dword [ebp + 8], eax
jbe 0x126950d
cmp byte [edi], 0xff
jne 0x126950d
lea eax, [edi + 2]
push eax
lea ecx, [ebp + 8]
call fcn.012580ea
jmp 0x1269516
push edi
lea ecx, [ebp + 8]
call fcn.01267556
push 0x1010c4c
push 0x1010c48
lea ecx, [ebp + 8]
call fcn.01266d9c
lea eax, [ebp + 8]
push eax
call fcn.012671f9
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.01032b44
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push esi
push eax
call dword [ecx + 0x104]
mov ebx, eax
test ebx, ebx
push esi
jge 0x1269588
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257f79
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082eef
mov eax, dword [ebp - 8]
test eax, eax
je 0x1269581
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x1269668
cmp word [ebp - 4], 0
jne 0x12695c3
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257f79
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082eef
mov eax, dword [ebp - 8]
test eax, eax
je 0x12695b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x983b0003
jmp 0x1269668
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257f79
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082eef
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x102c33c
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call fcn.0126727c
mov esi, eax
cmp esi, ebx
jge 0x1269601
mov eax, dword [ebp - 0x10]
jmp 0x1269634
cmp dword [ebp - 0x10], ebx
jne 0x126961a
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1269613
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x1269668
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.012688eb
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0x10]
jge 0x126964f
cmp eax, ebx
je 0x126963e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x126964b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1269668
cmp eax, ebx
je 0x1269659
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1269666
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10