Function at 0x4571b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x40], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], ecx
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x38], edi
cmp eax, 0xf
jne 0x457214
mov dword [ebx + 0x98], 1
mov dword [edi], 0
cmp dword [ebx + 0x98], 0
je 0x45743d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 2
jne 0x457256
push dword [ebx + 0x10]
mov dword [ebx + 0x98], 1
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x45733d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45733d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x45733d
cmp eax, 0x47
jne 0x457355
mov eax, dword [ebx + 0x14]
lea edi, [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, ebx
mov dword [ebx + 0x98], 1
mov dword [ebp - 8], eax
call fcn.00456110
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x45733a
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
mov esi, dword [edi]
sub ecx, edx
push 8
push ecx
mov ecx, dword [edi + 8]
sub ecx, esi
push ecx
push edx
push esi
push 0
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0xc]
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [ebx + 0x10]
mov edx, eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 4]
push 0x4e
push dword [ebx + 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x45733a
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x67
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [ebp - 0x38]
mov dword [edi], 0
cmp dword [ebx + 0x98], 0
je 0x45742a
jmp 0x4571fc
cmp eax, 0x18
jne 0x457430
cmp dword [ebp - 0x40], 0
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x98], 1
je 0x457460
and eax, 0xfffffff7
mov ecx, ebx
mov dword [ebx + 0x34], eax
lea ecx, [ecx]
mov edi, dword [ecx + 8]
push 0x641c34
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0045ed50
mov ecx, eax
mov esi, dword [ecx]
test esi, esi
je 0x4573c0
xor edx, edx
mov eax, edi
div dword [ecx + 8]
mov esi, dword [esi + edx*4]
test esi, esi
je 0x4573c0
lea esp, [esp]
cmp dword [esi + 0xc], edi
jne 0x4573b9
cmp dword [esi], edi
je 0x4573ee
mov esi, dword [esi + 8]
test esi, esi
jne 0x4573b0
push 0x641c34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x457417
push 0x641c34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4573cb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4573cb
mov eax, dword [ecx + 0x34]
shr eax, 3
not eax
test al, 1
jne 0x457380
mov edi, dword [ebp - 0x38]
mov dword [edi], 0
cmp dword [ebx + 0x98], 0
jne 0x4571fc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x98], 0
jne 0x4571fc
push edi
push ecx
push dword [ebp - 0x40]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00457ba0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x14
or eax, 8
mov dword [ebx + 0x34], eax
jmp 0x4573ce