Function at 0x10012690
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e760
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1005b328]
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
test cl, cl
je 0x100128b1
push 0x10007048
mov dword [0x1005c080], 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10007014
mov dword [0x1005bed4], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10006fd4
mov dword [0x1005bed0], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10006f9c
mov dword [0x1005becc], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x1005bec8], eax
mov byte [0x1005bcb8], 1
mov dword [ebp - 0x64], 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
lea edi, [ebx + 6]
cmp edi, ebx
jl 0x100127a6
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x100127a6
push 0
add ebx, ebx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add edi, edi
test eax, eax
je 0x10012769
push ebx
push 0
push edi
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov ecx, eax
call fcn.1001432c
push 0xc
push 0x10006f1c
lea eax, [ebx + esi]
push 0xc
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x1001278f.1
movzx eax, byte [eax + 0x10012900]
jmp dword [eax*4 + 0x100128f0]
xor eax, eax
push eax
mov word [edi + esi], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ProcessIdToSessionId]
push dword [ebp - 0x68]
lea eax, [ebp - 0x38]
push 0x10006d74
push 0x14
push eax
call fcn.10012b70
lea ecx, [ebp - 0x38]
add esp, 0x10
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100127e0
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10012960
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
je 0x1001284c
push 0
push 0x28
lea ecx, [ebp - 0x60]
push ecx
push 2
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x1001284c
lea ecx, [ebp - 0x60]
lea edx, [ecx + 2]
jmp 0x10012830
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012830
sub ecx, edx
lea eax, [ebp - 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10012960
push 0xf
push 0x10006d7c
lea ecx, [ebp - 0x64]
call fcn.10012960
mov esi, dword [ebp - 0x64]
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
push 0
push 4
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_OpenFileMappingW]
mov dword [0x1005c490], eax
test eax, eax
je 0x100128a4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov dword [0x1005c494], eax
test eax, eax
jne 0x100128aa
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, 0x1005c490
call fcn.10019c7a
jmp 0x100128aa
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
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.1001a260
mov esp, ebp
pop ebp
ret
mov ecx, 0x8007000e
call fcn.10023ed1
mov ecx, 0x80070057
call fcn.10023ed1
mov ecx, 0x80004005
call fcn.10023ed1
lea ecx, [ecx]
xchg esi, eax
daa
add dword [eax], edx
iretd