Function at 0x472670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4c6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test byte [ebx + 0x18], 0x40
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], eax
je 0x4726c7
cmp byte [esi + 0x1a5], 0
jne 0x4726c7
cmp byte [esi + 0x118], 0
mov byte [esi + 0x1a5], 1
je 0x4726c7
dec dword [0x4cfca4]
mov byte [esi + 0x118], 0
jne 0x4726c7
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
test byte [ebx + 0x18], 0x20
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
je 0x472713
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
call edi
test eax, 0x80000
je 0x472713
xor eax, eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 4]
push 0x141
push 0
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
test byte [ebx + 0x18], 1
jne 0x472f0b
mov ebx, esi
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x47285d
cmp dword [ebx + 0x138], 0
jne 0x4728c5
mov eax, dword [ebx + 4]
push 0xffffffffffffffec
push eax
call edi
test al, al
jns 0x47275e
cmp byte [ebx + 0x68], 0
jne 0x4728c5
cmp byte [ebx + 0x69], 0
jne 0x4728c5
test dword [ebx + 0x140], 0x100
jne 0x4728c5
cmp byte [ebx + 0x6a], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4727bd
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, 0x4adf9c
call fcn.0041bf30
mov edi, ebx
call fcn.00474040
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4727bd
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4727bd
mov edx, dword [edi + 4]
push 0
push edx
call esi
lea edi, [ebx + 0x134]
lea eax, [ebp - 0x58]
call fcn.00475dc0
cmp byte [ebx + 0x69], 0
je 0x472806
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, str.BaseBtnMaximise
call fcn.0041bf30
mov edi, ebx
call fcn.00474040
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x472806
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x472806
mov ecx, dword [edi + 4]
push 0
push ecx
call esi
lea edi, [ebx + 0x134]
lea eax, [ebp - 0x58]
call fcn.00475dc0
cmp byte [ebx + 0x68], 0
je 0x4728c5
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, str.BaseBtnMinimise
call fcn.0041bf30
mov edi, ebx
call fcn.00474040
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4728c5
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4728c5
mov eax, dword [edi + 4]
push 0
push eax
call esi
lea edi, [ebx + 0x134]
lea eax, [ebp - 0x58]
call fcn.00475dc0
jmp 0x4728c5
cmp dword [ebx + 0x138], 0
je 0x4728c5
mov edi, dword [ebx + 0x134]
mov esi, dword [edi]
cmp esi, edi
je 0x472887
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esi]
cmp esi, edi
jne 0x472872
mov ecx, dword [ebx + 0x134]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x134]
mov dword [ecx + 4], ecx
mov dword [ebx + 0x138], 0
cmp eax, dword [ebx + 0x134]
je 0x4728c5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.00486a80
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x134]
jne 0x4728b0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x472f0b
lea ecx, [ebp - 0x24]
mov esi, ebx
mov edx, dword [esi + 4]
push ecx
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esi + 0x31c]
mov edi, dword [ebx]
cmp edi, ebx
je 0x472a2f
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [edi + 0x10]
cmp ecx, 0xffffffff
je 0x472931
cmp dword [edi + 0x18], 0xffffffff
je 0x47292c
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub ecx, dword [edi + 0x18]
mov dword [eax + 0x18], ecx
jmp 0x472960
cmp ecx, 0xffffffff
jne 0x47295d
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x472960
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x472955
sub ecx, dword [eax + 0x10]
mov esi, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub ecx, edx
mov dword [eax + 0x18], ecx
sub ecx, esi
jmp 0x47295d
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x14]
cmp ecx, 0xffffffff
je 0x472984
cmp dword [edi + 0x1c], 0xffffffff
je 0x47297f
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
sub edx, dword [edi + 0x1c]
mov dword [eax + 0x1c], edx
jmp 0x4729b3
cmp ecx, 0xffffffff
jne 0x4729b0
mov edx, dword [edi + 0x1c]
cmp edx, 0xffffffff
je 0x4729b3
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x4729a8
sub ecx, dword [eax + 0x14]
mov esi, ecx
mov ecx, dword [ebp - 0x18]
sub ecx, edx
sub ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
sub ecx, esi
jmp 0x4729b0
mov ecx, dword [ebp - 0x18]
sub ecx, edx
sub ecx, dword [ebp - 0x20]
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x4729c5
mov edx, dword [eax + 0x10]
sub ecx, edx
jns 0x4729c5
mov dword [eax + 0x18], edx
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x4729d7
mov edx, dword [eax + 0x14]
sub ecx, edx
jns 0x4729d7
mov dword [eax + 0x1c], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp byte [edi + 0x21], 0
jne 0x472a27
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x472a0c
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x472a27
lea ebx, [ebx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x472a00
jmp 0x472a27
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x472a25
cmp edi, dword [eax + 8]
jne 0x472a25
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x472a15
mov edi, eax
cmp edi, ebx
jne 0x472903
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ecx + 0x33c]
mov edi, dword [esi]
cmp edi, esi
je 0x472b3a
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x472a69
cmp dword [edi + 0x18], 0xffffffff
je 0x472a64
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
sub edx, dword [edi + 0x18]
mov dword [eax + 0x18], edx
jmp 0x472a87
cmp ecx, 0xffffffff
jne 0x472a84
mov ebx, dword [edi + 0x18]
cmp ebx, 0xffffffff
je 0x472a87
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x10]
sub ecx, ebx
mov dword [eax + 0x18], ecx
sub ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x14]
cmp ecx, 0xffffffff
je 0x472aab
cmp dword [edi + 0x1c], 0xffffffff
je 0x472aa6
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
sub ecx, dword [edi + 0x1c]
mov dword [eax + 0x1c], ecx
jmp 0x472ac9
cmp ecx, 0xffffffff
jne 0x472ac6
mov ebx, dword [edi + 0x1c]
cmp ebx, 0xffffffff
je 0x472ac9
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
sub edx, dword [eax + 0x14]
sub ecx, ebx
sub ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
sub ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
sub edx, ecx
jns 0x472ad6
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
sub edx, ecx
jns 0x472ae3
mov dword [eax + 0x1c], ecx
mov ebx, dword [edi + 0xc]
call fcn.00446b80
cmp byte [edi + 0x21], 0
jne 0x472b32
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x472b10
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x472b32
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x472b04
jmp 0x472b32
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x472b30
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x472b30
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x472b20
mov edi, eax
cmp edi, esi
jne 0x472a42
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x370]
mov dword [ebp - 0x58], 0
test eax, eax
jle 0x472b58
push eax
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x36c]
mov edi, dword [eax]
mov dword [ebp - 0x60], eax
cmp edi, eax
je 0x472d3b
jmp 0x472b70
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x472ce4
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x14]
push eax
push ecx
call esi
test eax, eax
je 0x472bb8
mov eax, dword [ebx + 4]
lea edx, [ebp - 0xc]
push edx
push eax
call esi
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp ebx, ecx
jle 0x472bce
mov eax, ebx
mov ebx, ecx
mov ecx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x472bf3
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x472bea
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov ebx, eax
sub ecx, edx
jmp 0x472c0b
cmp eax, 0xffffffff
je 0x472bf3
mov ebx, eax
jmp 0x472c0e
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x472c11
mov eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub eax, ebx
sub ecx, edx
mov ebx, ecx
sub ebx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [edi + 0x14]
cmp edx, 0xffffffff
je 0x472c3b
mov esi, dword [edi + 0x1c]
cmp esi, 0xffffffff
je 0x472c31
mov eax, dword [ebp - 0x18]
sub eax, esi
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
jmp 0x472c63
cmp edx, 0xffffffff
je 0x472c3b
mov dword [ebp - 0x10], edx
jmp 0x472c60
mov edx, dword [edi + 0x1c]
cmp edx, 0xffffffff
je 0x472c5d
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
sub eax, edx
sub eax, dword [ebp - 0x20]
mov edx, eax
sub edx, esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
jmp 0x472c63
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, ebx
cmp ecx, 5
jge 0x472c70
add ebx, 5
mov dword [ebp - 0xc], ebx
sub eax, edx
cmp eax, 5
jge 0x472c7d
add edx, 5
mov dword [ebp - 8], edx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push 1
call edx
cmp dword [ebp - 0x58], 0
je 0x472cbf
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push 0x1c
sub eax, edx
push eax
mov eax, dword [edi + 0xc]
sub ecx, esi
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [ebp - 0x58]
push esi
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_DeferWindowPos]
test eax, eax
jne 0x472d0c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0x1c
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [edi + 0x21], 0
jne 0x472d32
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x472d11
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x472d32
lea ecx, [ecx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x472d00
jmp 0x472d32
mov dword [ebp - 0x58], eax
jmp 0x472ce4
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x472d30
lea ebx, [ebx]
cmp edi, dword [eax + 8]
jne 0x472d30
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x472d20
mov edi, eax
cmp edi, dword [ebp - 0x60]
jne 0x472b70
mov ebx, dword [ebp - 0x5c]
cmp byte [ebx + 0xe5], 0
jne 0x472d50
push 1
mov edi, ebx
call fcn.004725a0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x472d5e
push eax
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov eax, dword [ebx + 4]
push 0x181
push 0
lea edx, [ebp - 0x24]
push edx
push eax
mov byte [ebx + 0xd0], 1
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [ebx + 0x36c]
mov edi, dword [ecx]
mov esi, dword [ebp - 0x60]
cmp edi, esi
je 0x472de6
lea esp, [esp]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
push 0
call eax
cmp byte [edi + 0x21], 0
jne 0x472de2
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x472dc1
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x472de2
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x472db5
jmp 0x472de2
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x472de0
lea ebx, [ebx]
cmp edi, dword [eax + 8]
jne 0x472de0
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x472dd0
mov edi, eax
cmp edi, esi
jne 0x472d90
cmp dword [ebx + 0x3a0], 0
je 0x472f0b
cmp dword [ebx + 0x394], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jne 0x472eb0
push 8
call fcn.00486d3e
add esp, 4
test eax, eax
je 0x472e34
mov dword [eax], 0
mov dword [eax + 4], 1
mov esi, eax
jmp 0x472e36
xor esi, esi
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x64], esi
call fcn.00479a80
push esi
lea ecx, [ebp - 0x64]
push esi
push ecx
call fcn.00418230
mov eax, dword [ebp - 0x64]
mov edx, dword [ebx + 0x394]
mov dword [ebx + 0x394], eax
mov esi, dword [ebx + 0x398]
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov dword [ebp - 0x64], edx
mov dword [ebx + 0x398], eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x472ea2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x472ea2
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x472ea2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0x394]
call fcn.00466880
mov esi, dword [ebx + 0x394]
push 0x30
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.0048a470
mov eax, dword [esi]
mov edx, dword [ebx + 0x3a0]
add esp, 0xc
push eax
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x48], edx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
mov dword [ebp - 0x3c], edx
mov edx, dword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
push 0x434
push edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
test byte [eax + 0x18], 0x40
je 0x472f27
mov esi, dword [ebp - 0x5c]
call fcn.00473110
mov ecx, dword [ebp - 0x68]
mov dword [ecx], 0
jmp 0x472f30
mov edx, dword [ebp - 0x68]
mov dword [edx], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00486a8b
mov esp, ebp
pop ebp
ret 8