Function at 0x10016d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f3bf
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100911c8]
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
mov ebx, ecx
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0x2ff
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea ecx, [ebx + 0x78]
call fcn.1001b310
lea ecx, [ebx + 0x78]
call fcn.1001a850
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21d]
call fcn.1000cda0
mov edi, eax
mov ecx, dword [0x100b95bc]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x10016e4a
push 0x10091088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b95bc], 0
jne 0x10016e31
push 0x1c
call fcn.1002fcb8
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x10016e29
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10016e2b
xor esi, esi
mov dword [0x100b95bc], esi
push 0x10091088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b95bc]
test ecx, ecx
jne 0x10016e4a
xor eax, eax
jmp 0x10016ea6
mov eax, dword [0x100b95b8]
test eax, eax
jne 0x10016ea6
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x100b95b8], 0
jne 0x10016e96
push 0x30
call fcn.1002fcb8
add esp, 4
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10016e84
mov ecx, eax
call fcn.1000cc70
mov ecx, eax
jmp 0x10016e86
xor ecx, ecx
mov byte [ebp - 4], 0
xchg dword [ebp - 0x21c], eax
mov dword [0x100b95b8], ecx
mov eax, dword [0x100b95bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x100b95b8]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call fcn.1000cf10
mov ecx, dword [edi]
test ecx, ecx
je 0x1001711b
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10016ee6
test dx, dx
je 0x10016ee2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10016ee6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10016ec0
xor esi, esi
jmp 0x10016eeb
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x228]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016f0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016f2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x10016fb8
mov ax, word [0x1007264c]
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.1004a6f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push str.create
push str.status
push str.ccmousehelper
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x10016ffa
call fcn.10008da0
mov ecx, eax
test ecx, ecx
je 0x10017125
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
push esi
push str.create
push str.status
push str.Helper
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10016ffa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x493e0
push 0x3e8
push dword [ebx + 4]
call esi
push 0
push 0x1b7740
push 0x3e9
push dword [ebx + 4]
call esi
mov ecx, dword [0x100b912c]
test ecx, ecx
jne 0x10017089
push 0x10091058
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b912c], 0
jne 0x10017070
push 0x1c
call fcn.1002fcb8
mov esi, eax
add esp, 4
mov dword [ebp - 0x224], esi
test esi, esi
je 0x10017068
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1001706a
xor esi, esi
mov dword [0x100b912c], esi
push 0x10091058
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b912c]
test ecx, ecx
jne 0x10017089
xor eax, eax
jmp 0x100170eb
mov eax, dword [0x100b9128]
test eax, eax
jne 0x100170eb
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x100b9128], 0
jne 0x100170db
push 4
call fcn.1002fcb8
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100170c6
mov ecx, eax
call fcn.10022210
mov ecx, eax
jmp 0x100170c8
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x21c], eax
mov dword [0x100b9128], ecx
mov eax, dword [0x100b912c]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x100b9128]
push 0
push 0
push 1
push 0
push 0x10074e3c
mov ecx, eax
call fcn.100222e0
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.10030059
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008480
push 0x80004005
call fcn.10008480
int3