Function at 0x4016f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4a0173
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4cc99c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc99c]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x24], ebx
cmp eax, 0x201
ja 0x401917
je 0x4017a8
dec eax
je 0x40179c
dec eax
jne 0x4019d4
mov eax, dword [ebx + 0x4534]
test eax, eax
je 0x4019d4
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x4534]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebx + 0x4534]
test ecx, ecx
je 0x40178d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [ebx + 0x4534], 0
jmp 0x4019d4
mov edi, ebx
call fcn.00401390
jmp 0x4019d4
mov ecx, dword [ebp + 0x10]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
push eax
lea ecx, [ebx + 0x118]
call dword [sym.imp.HFUILib.dll_public:_class_CControlUI____thiscall_CPaintManagerUI::FindControl0_struct_tagPOINT_const]
mov edi, eax
test edi, edi
je 0x4019d4
mov eax, dword [edi]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0x180], 1
mov esi, str.accelshortcuts
call dword [sym.imp.HFUILib.dll_public:_wchar_t_const____thiscall_CStdString::operator_wchar_t_const__void_const]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x401818
test cx, cx
je 0x401814
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x401818
add eax, 4
add esi, 4
test cx, cx
jne 0x4017f2
xor eax, eax
jmp 0x40181d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x2c]
sete byte [esp + 0x23]
mov dword [esp + 0x180], 0xffffffff
call dword [sym.imp.HFUILib.dll_public_virtual:_void___thiscall_CStdString::destructor_void_]
cmp byte [esp + 0x23], 0
mov ecx, edi
je 0x40186b
call dword [sym.imp.HFUILib.dll_public:_bool___thiscall_COptionUI::IsChecked_void_const]
test al, al
sete al
movzx ecx, al
push ecx
mov ecx, edi
call dword [sym.imp.HFUILib.dll_public:_void___thiscall_COptionUI::SetCheck_bool_]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push 0x201
jmp 0x401a04
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0xb4]
push eax
call edx
mov ecx, eax
mov dword [esp + 0x180], 2
mov esi, str.accelkey
call dword [sym.imp.HFUILib.dll_public:_wchar_t_const____thiscall_CStdString::operator_wchar_t_const__void_const]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4018b8
test cx, cx
je 0x4018b4
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4018b8
add eax, 4
add esi, 4
test cx, cx
jne 0x401892
xor eax, eax
jmp 0x4018bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0xb4]
sete bl
mov dword [esp + 0x180], 0xffffffff
call dword [sym.imp.HFUILib.dll_public_virtual:_void___thiscall_CStdString::destructor_void_]
test bl, bl
je 0x401901
mov ecx, dword [esp + 0x24]
push str.accelshortcuts
add ecx, 0x118
call dword [sym.imp.HFUILib.dll_public:_class_CControlUI____thiscall_CPaintManagerUI::FindControl1_wchar_t_const__]
test eax, eax
je 0x401901
push 1
mov ecx, eax
call dword [sym.imp.HFUILib.dll_public:_void___thiscall_COptionUI::SetCheck_bool_]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x24]
push eax
push ecx
push 0x201
jmp 0x401a04
cmp eax, 0x440
jne 0x4019d4
mov edi, dword [sym.imp.HFUILib.dll_public:_class_CControlUI____thiscall_CPaintManagerUI::FindControl1_wchar_t_const__]
push str.accelshortcuts
lea ecx, [ebx + 0x118]
call edi
test eax, eax
je 0x401943
push 1
mov ecx, eax
call dword [sym.imp.HFUILib.dll_public:_void___thiscall_COptionUI::SetCheck_bool_]
mov edx, dword [ebx + 0x4534]
fld dword [edx + 0x30]
push str.accelspeedvalue
lea ecx, [ebx + 0x118]
fstp dword [esp + 0x2c]
call edi
mov esi, eax
test esi, esi
je 0x4019d4
mov eax, dword [0x4cc964]
mov edx, dword [eax + 0xc]
mov ecx, 0x4cc964
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
fld dword [esp + 0x28]
sub esp, 8
mov dword [esp + 0x188], 0
fstp qword [esp]
push str._.1f
lea edi, [esp + 0x30]
call fcn.00403000
mov eax, dword [esi]
mov edi, dword [esp + 0x30]
mov edx, dword [eax + 0x30]
add esp, 0xc
push edi
mov ecx, esi
call edx
lea eax, [edi - 0x10]
mov dword [esp + 0x180], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x4534]
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x4019fb
mov edx, dword [ecx]
mov edx, dword [edx]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ebx + 4]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push esi
push ecx
mov ecx, ebx
call fcn.00440c90
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret 0xc