Function at 0x100510b0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x1005c080
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x1006eb44]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x30]
push str.ACAD_SHORTCUT_TEMPLATE
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.1004f6c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 8], 0
jne 0x10051147
mov ecx, dword [ebp + 0x228]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call esi
mov edx, dword [ebp + 4]
push 0x447
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call esi
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x1005130e
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10051301
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0xabc]
push edx
call fcn.10053a40
mov eax, dword [0x1006eb44]
add esp, 8
mov dword [esp + 0x14], eax
push str.ACAD_CUSTOM_SHORTCUT
push ebp
lea eax, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.1004f6c0
mov edi, dword [esp + 0x14]
cmp dword [edi - 8], 0
jne 0x100511ca
mov dword [ebp + 0xafc], 1
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x100511b0
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x100511b0
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
je 0x1005130e
lea esi, [ebx - 0xc]
push esi
call ebp
jmp 0x10051301
lea eax, [esp + 0x14]
call fcn.10055c90
mov ecx, dword [ebp + 0x170]
lea esi, [ebp + 0xb00]
push esi
mov dword [ebp + 0xafc], eax
call sub.SetupUi.dll_public:_bool___thiscall_CProduct::GetCustomShortcuts_class_std::vector_struct_ShortcutStrings__class_std::allocator_struct_ShortcutStrings____
mov eax, dword [esi + 4]
test eax, eax
je 0x1005118c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005118c
xor edi, edi
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esi + 4]
test eax, eax
je 0x100512c4
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x100512c4
cmp ebx, 0x3c
jae 0x100512c4
mov eax, dword [esi + 4]
test eax, eax
je 0x10051261
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10051267
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov ecx, dword [ebx + eax + 4]
push ecx
push 0
push edi
add ebp, 0x228
push ebp
call fcn.100565b0
mov eax, dword [esi + 4]
test eax, eax
je 0x1005129e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100512a4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
mov eax, dword [ebx + edx + 8]
push eax
push 1
push edi
push ebp
call fcn.100565b0
mov ebp, dword [esp + 0x30]
add edi, 1
add ebx, 0xc
jmp 0x10051210
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x100512ec
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x100512ec
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1005130e
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1005130e
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4