Function at 0x10050610
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 0x100506a7
mov ecx, dword [ebp + 0x478]
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 0x1005086e
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10050861
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0xd0c]
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 0x1005072a
mov dword [ebp + 0xd4c], 1
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x10050710
lea esi, [edi - 0xc]
push esi
call ebp
test eax, eax
jg 0x10050710
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
je 0x1005086e
lea esi, [ebx - 0xc]
push esi
call ebp
jmp 0x10050861
lea eax, [esp + 0x14]
call fcn.10055c90
mov ecx, dword [ebp + 0x170]
lea esi, [ebp + 0xd50]
push esi
mov dword [ebp + 0xd4c], 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 0x100506ec
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 0x100506ec
xor edi, edi
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esi + 4]
test eax, eax
je 0x10050824
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 0x10050824
cmp ebx, 0x3c
jae 0x10050824
mov eax, dword [esi + 4]
test eax, eax
je 0x100507c1
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 0x100507c7
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, 0x478
push ebp
call fcn.100565b0
mov eax, dword [esi + 4]
test eax, eax
je 0x100507fe
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 0x10050804
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 0x10050770
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1005084c
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1005084c
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 0x1005086e
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1005086e
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