Function at 0x1269207
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 0x12694a2
cmp dword [ebp + 0xc], ebx
je 0x12694a2
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1269232
call fcn.0125919e
lea eax, [ebp - 8]
push eax
push 0x102cf04
push 0x17
push ebx
push 0x102c2c4
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x12694cd
cmp dword [ebp - 8], ebx
je 0x12694a2
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.01259b08
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 0x12694cd
cmp word [ebp - 4], bx
jne 0x1269471
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
je 0x12692d2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1269306
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12692e4
call esi
mov esi, eax
jmp 0x12692f4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0xc]
call fcn.01082732
mov eax, dword [ebp - 8]
test eax, eax
jmp 0x12694d2
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 0x1269335
lea ecx, [ebp - 0xc]
call fcn.01082732
mov eax, dword [ebp - 8]
test eax, eax
je 0x126932b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x12694f7
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 0x1269373
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x126935a
call esi
mov esi, eax
jmp 0x126936a
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 0x12692f4
cmp esi, 2
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
mov eax, dword [0x12d1c68]
mov dword [ebp + 8], eax
jbe 0x126939c
cmp byte [edi], 0xff
jne 0x126939c
lea eax, [edi + 2]
push eax
lea ecx, [ebp + 8]
call fcn.01257e58
jmp 0x12693a5
push edi
lea ecx, [ebp + 8]
call fcn.01267400
push 0x1010c4c
push 0x1010c48
lea ecx, [ebp + 8]
call fcn.01266c46
lea eax, [ebp + 8]
push eax
call fcn.012670a3
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.01257752
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 0x1269417
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257ce7
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082732
mov eax, dword [ebp - 8]
test eax, eax
je 0x1269410
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x12694f7
cmp word [ebp - 4], 0
jne 0x1269452
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257ce7
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082732
mov eax, dword [ebp - 8]
test eax, eax
je 0x1269448
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x983b0003
jmp 0x12694f7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257ce7
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082732
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x102c324
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call fcn.01267126
mov esi, eax
cmp esi, ebx
jge 0x1269490
mov eax, dword [ebp - 0x10]
jmp 0x12694c3
cmp dword [ebp - 0x10], ebx
jne 0x12694a9
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x12694a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x12694f7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0126877a
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0x10]
jge 0x12694de
cmp eax, ebx
je 0x12694cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x12694da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x12694f7
cmp eax, ebx
je 0x12694e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x12694f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10