Function at 0x437660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491c55
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4c9070]
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 edi, ecx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040b8c0
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x120]
call fcn.00403eb0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, dword [ebp - 0x120]
mov edx, str.btn_inc
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x437709
test si, si
je 0x437705
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x437709
add ecx, 4
add edx, 4
test si, si
jne 0x4376e3
xor ecx, ecx
jmp 0x43770e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
or esi, 0xffffffff
test cl, cl
je 0x4377b6
mov ecx, dword [ebx + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x24]
push 0
push 0x4cd8c0
push 0x4cc648
mov edx, dword [eax]
mov ecx, eax
push 0
push str.edit_hour
call dword [edx + 0x24]
push eax
lea ecx, [edi + 0x30]
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindSubControlByName_class_DuiLib::CControlUI___wchar_t_const__const]
push eax
call fcn.0048e49a
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4378fc
mov edx, dword [ebx]
lea eax, [ebp - 0x94]
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov byte [ebp - 4], 3
mov ecx, eax
mov eax, dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
call eax
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
call eax
push dword [ebp - 0x11c]
call fcn.00477331
inc eax
mov ecx, 0x18
add esp, 4
cmp eax, ecx
cmovg eax, ecx
jmp 0x43788b
mov ecx, str.btn_dec
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4377e6
test dx, dx
je 0x4377e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4377e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4377c0
xor eax, eax
jmp 0x4377eb
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x4378b7
mov ecx, dword [ebx + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x24]
push 0
push 0x4cd8c0
push 0x4cc648
mov edx, dword [eax]
mov ecx, eax
push 0
push str.edit_hour
call dword [edx + 0x24]
push eax
lea ecx, [edi + 0x30]
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindSubControlByName_class_DuiLib::CControlUI___wchar_t_const__const]
push eax
call fcn.0048e49a
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4378fc
mov edx, dword [ebx]
lea eax, [ebp - 0x94]
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov byte [ebp - 4], 6
mov ecx, eax
mov eax, dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
call eax
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403eb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
mov eax, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
call eax
push dword [ebp - 0x11c]
call fcn.00477331
add esp, 4
mov ecx, 0
sub eax, 1
cmovs eax, ecx
push eax
push ebx
mov ecx, edi
call fcn.00436b70
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4378fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4378fc
mov edx, str.btn_turnon
lea ecx, [ebp - 0x120]
call fcn.00408890
test al, al
je 0x4378fc
push 0
push dword [edi + 4]
call fcn.004543c0
test eax, eax
je 0x4378fc
push ecx
push 0x23
call fcn.004548e0
push 0
push 0
push dword [edi + 0xf08]
push 0x454ac0
push 0
push 0
call fcn.0047d256
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x43791e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0046be2f
mov esp, ebp
pop ebp
ret 4