Function at 0x457ae0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x2e0], eax
je 0x457b78
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432ce0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
mov ecx, dword [esi + 0x2e0]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
push eax
push ecx
lea edx, [ebp - 0x28]
push str._nUpdateUIByState:_d___d_n
push edx
call fcn.00428a30
mov eax, dword [ebp - 0x28]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [esi + 0x2e0], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457b81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x457b81
cmp dword [ebp + 0xc], edi
je 0x457e6a
mov eax, dword [ebx]
dec eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov ecx, 1
cmp eax, 6
ja case.default.0x457b97
jmp dword [eax*4 + 0x457e88]
mov dword [ebp - 0x2c], edi
jmp 0x457bc5
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], 5
jmp 0x457bc5
mov dword [ebp - 0x2c], edi
mov dword [esi + 0x2e4], edi
jmp case.default.0x457b97
mov eax, 5
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x2e4], ecx
cmp dword [ebx], 3
je 0x457bdb
push ecx
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
mov ecx, dword [esi + 0x1dc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457c48
cmp dword [ebp - 0x30], 5
jne 0x457cb4
mov eax, dword [esi + 0x1dc]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x1dc]
push 6
push 0x12
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x457c4e
cmp dword [ebp - 0x30], 5
jne 0x457cb4
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457df9
mov edx, dword [esi + 0x1dc]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x14]
push eax
push ecx
call ebx
test eax, eax
je 0x457c9b
mov eax, dword [esi + 4]
lea edx, [ebp - 0xc]
push edx
push eax
call ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x44]
push 5
push edi
push edi
add ecx, 4
push ecx
push edx
push edi
push eax
jmp 0x457df3
cmp dword [ebp - 0x2c], 5
jne 0x457d96
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457d23
mov eax, dword [esi + 0x1dc]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x457d09
mov ecx, dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x44]
push 5
push edi
push edi
add edx, 3
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457df9
mov ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push 4
push edx
mov eax, ecx
sub eax, ebx
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
cdq
sub eax, edx
mov edx, dword [ebp - 0x20]
sar eax, 1
lea eax, [eax + edx + 0xf]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [ebp - 0x24]
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esi + 0xdc]
push eax
push edi
push ecx
jmp 0x457df3
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457df9
mov ecx, dword [esi + 0x1dc]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [ebp - 0x14]
push edx
push eax
call ebx
test eax, eax
je 0x457ddf
mov edx, dword [esi + 4]
lea ecx, [ebp - 0xc]
push ecx
push edx
call ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x44]
push 5
push edi
push edi
add eax, 3
push eax
push ecx
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x1dc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x457e1d
mov ecx, dword [ebp - 0x30]
mov edx, dword [esi + 0x1dc]
push ecx
push edx
call ebx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457e3b
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + 0xdc]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x124]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457e59
mov ecx, dword [ebp - 0x28]
mov edx, dword [esi + 0x124]
push ecx
push edx
call ebx
mov eax, dword [esi + 0x180]
cmp eax, edi
je 0x457e6a
mov ecx, dword [ebp - 0x28]
push ecx
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 8