Function at 0x12693e6
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 0x1269681
cmp dword [ebp + 0xc], ebx
je 0x1269681
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1269411
call fcn.01259479
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 0x12696ac
cmp dword [ebp - 8], ebx
je 0x1269681
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.0114176f
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 0x12696ac
cmp word [ebp - 4], bx
jne 0x1269650
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 0x12694b1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x12694e5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x12694c3
call esi
mov esi, eax
jmp 0x12694d3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0xc]
call fcn.01082628
mov eax, dword [ebp - 8]
test eax, eax
jmp 0x12696b1
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 0x1269514
lea ecx, [ebp - 0xc]
call fcn.01082628
mov eax, dword [ebp - 8]
test eax, eax
je 0x126950a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x12696d6
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 0x1269552
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1269539
call esi
mov esi, eax
jmp 0x1269549
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 0x12694d3
cmp esi, 2
mov byte [edi + esi], 0
mov byte [edi + esi + 1], 0
mov eax, dword [0x12d1c68]
mov dword [ebp + 8], eax
jbe 0x126957b
cmp byte [edi], 0xff
jne 0x126957b
lea eax, [edi + 2]
push eax
lea ecx, [ebp + 8]
call fcn.0125814e
jmp 0x1269584
push edi
lea ecx, [ebp + 8]
call fcn.012675c4
push 0x1010c4c
push 0x1010c48
lea ecx, [ebp + 8]
call fcn.01266e0a
lea eax, [ebp + 8]
push eax
call fcn.01267267
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.01257a53
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 0x12695f6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257fdd
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082628
mov eax, dword [ebp - 8]
test eax, eax
je 0x12695ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x12696d6
cmp word [ebp - 4], 0
jne 0x1269631
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257fdd
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082628
mov eax, dword [ebp - 8]
test eax, eax
je 0x1269627
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x983b0003
jmp 0x12696d6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp + 8]
call fcn.01257fdd
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.01082628
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x102c324
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call fcn.012672ea
mov esi, eax
cmp esi, ebx
jge 0x126966f
mov eax, dword [ebp - 0x10]
jmp 0x12696a2
cmp dword [ebp - 0x10], ebx
jne 0x1269688
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1269681
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004003
jmp 0x12696d6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.01268959
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp - 0x10]
jge 0x12696bd
cmp eax, ebx
je 0x12696ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x12696b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x12696d6
cmp eax, ebx
je 0x12696c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x12696d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10