Function at 0x10012fc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105156
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1015050c]
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
xorps xmm0, xmm0
mov dword [ebp - 0x10c], 0x10118a70
movups xmmword [ebp - 0x108], xmm0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov edi, dword [0x10154c3c]
add edi, 0x10
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x10154c08]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.100ad122
add esp, 0xc
test eax, eax
je 0x1001308f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.100ad122
add esp, 0xc
test eax, eax
je 0x1001308f
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x10013080
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x1001308c
lea ecx, [ebp - 0x10c]
mov dword [eax], ecx
inc dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
lea ecx, [ebp - 0xd4]
call fcn.10015a90
mov byte [ebp - 4], 1
call fcn.10010f70
cmp dword [eax + 0x30], 0
jne 0x100130be
call fcn.10010f70
mov dword [eax + 0x30], 0
call fcn.10010f70
push dword [ebp - 0x110]
lea ecx, [ebp - 0xb4]
push ecx
push eax
push 0x1014f010
push 0x10155530
call fcn.1000bcd0
movzx edi, ax
add esp, 0x14
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x1001317a
call fcn.10033f40
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x1001317a
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ecx, [ebp - 0xd4]
call fcn.10015d90
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x10013135
push eax
call fcn.100ab630
add esp, 4
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
test eax, eax
je 0x1001315c
push eax
call fcn.100ab630
add esp, 4
mov eax, esi
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.10073638
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.10034042
test di, di
je 0x1001310b
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1014f014
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1014f02c]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xcc]
push 0x1014f014
mov dword [0x1014f02c], eax
call esi
mov ecx, dword [0x1014f040]
mov eax, dword [0x1014f048]
mov edx, dword [0x1014f03c]
sub eax, ecx
push 0
push dword [0x10155534]
push 0
push 0
push eax
mov eax, dword [0x1014f044]
sub eax, edx
push eax
push ecx
push edx
push SysReAllocString
push 0
push edi
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x1001310b
call fcn.10010d10
mov ecx, eax
call fcn.1000b870
test eax, eax
jne 0x10013267
push dword [ebp + 0xc]
push dword [ebp - 0xd0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xd0]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xd0]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0xd0]
call esi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x100132a4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xf0]
push eax
call edi
test eax, eax
jne 0x100132a4
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x10c]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x10013278
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x10013274
test eax, eax
je 0x1001333a
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x10c]
call dword [eax]
test eax, eax
jne 0x100132f3
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xf0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xec]
cmp eax, 0x118
ja 0x1001330e
je 0x1001332a
cmp eax, 0xf
je 0x1001332a
cmp eax, 0xa0
jmp 0x10013313
cmp eax, 0x200
je 0x1001332a
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x10013274
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x10013274
mov esi, dword [ebp - 0xe8]
mov ecx, 0x10154bd4
call fcn.10012e90
jmp 0x1001310d