Function at 0x4703a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4c9144]
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 0x4703f7
cmp byte [esi + 0x19d], 0
jne 0x4703f7
cmp byte [esi + 0x110], 0
mov byte [esi + 0x19d], 1
je 0x4703f7
dec dword [0x4d28f0]
mov byte [esi + 0x110], 0
jne 0x4703f7
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
test byte [ebx + 0x18], 0x20
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
je 0x470443
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
call edi
test eax, 0x80000
je 0x470443
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 0x470c3b
mov ebx, esi
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x47058d
cmp dword [ebx + 0x130], 0
jne 0x4705f5
mov eax, dword [ebx + 4]
push 0xffffffffffffffec
push eax
call edi
test al, al
jns 0x47048e
cmp byte [ebx + 0x68], 0
jne 0x4705f5
cmp byte [ebx + 0x69], 0
jne 0x4705f5
test dword [ebx + 0x138], 0x100
jne 0x4705f5
cmp byte [ebx + 0x6a], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
je 0x4704ed
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, 0x4afa84
call fcn.0041be20
mov edi, ebx
call fcn.00471d70
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4704ed
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4704ed
mov edx, dword [edi + 4]
push 0
push edx
call esi
lea edi, [ebx + 0x12c]
lea eax, [ebp - 0x58]
call fcn.00473c40
cmp byte [ebx + 0x69], 0
je 0x470536
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, str.BaseBtnMaximise
call fcn.0041be20
mov edi, ebx
call fcn.00471d70
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x470536
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x470536
mov ecx, dword [edi + 4]
push 0
push ecx
call esi
lea edi, [ebx + 0x12c]
lea eax, [ebp - 0x58]
call fcn.00473c40
cmp byte [ebx + 0x68], 0
je 0x4705f5
push ecx
mov dword [ebp - 0x60], esp
push esp
mov ecx, str.BaseBtnMinimise
call fcn.0041be20
mov edi, ebx
call fcn.00471d70
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4705f5
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4705f5
mov eax, dword [edi + 4]
push 0
push eax
call esi
lea edi, [ebx + 0x12c]
lea eax, [ebp - 0x58]
call fcn.00473c40
jmp 0x4705f5
cmp dword [ebx + 0x130], 0
je 0x4705f5
mov edi, dword [ebx + 0x12c]
mov esi, dword [edi]
cmp esi, edi
je 0x4705b7
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 0x4705a2
mov ecx, dword [ebx + 0x12c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x12c]
mov dword [ecx + 4], ecx
mov dword [ebx + 0x130], 0
cmp eax, dword [ebx + 0x12c]
je 0x4705f5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.00487ef3
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x12c]
jne 0x4705e0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x470c3b
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 + 0x314]
mov edi, dword [ebx]
cmp edi, ebx
je 0x47075f
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 0x470661
cmp dword [edi + 0x18], 0xffffffff
je 0x47065c
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 0x470690
cmp ecx, 0xffffffff
jne 0x47068d
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x470690
mov ecx, dword [eax + 0x18]
cmp ecx, 0xffffffff
je 0x470685
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 0x47068d
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 0x4706b4
cmp dword [edi + 0x1c], 0xffffffff
je 0x4706af
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 0x4706e3
cmp ecx, 0xffffffff
jne 0x4706e0
mov edx, dword [edi + 0x1c]
cmp edx, 0xffffffff
je 0x4706e3
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x4706d8
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 0x4706e0
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 0x4706f5
mov edx, dword [eax + 0x10]
sub ecx, edx
jns 0x4706f5
mov dword [eax + 0x18], edx
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x470707
mov edx, dword [eax + 0x14]
sub ecx, edx
jns 0x470707
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 0x470757
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x47073c
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x470757
lea ebx, [ebx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x470730
jmp 0x470757
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x470755
cmp edi, dword [eax + 8]
jne 0x470755
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x470745
mov edi, eax
cmp edi, ebx
jne 0x470633
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ecx + 0x334]
mov edi, dword [esi]
cmp edi, esi
je 0x47086a
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x470799
cmp dword [edi + 0x18], 0xffffffff
je 0x470794
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 0x4707b7
cmp ecx, 0xffffffff
jne 0x4707b4
mov ebx, dword [edi + 0x18]
cmp ebx, 0xffffffff
je 0x4707b7
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 0x4707db
cmp dword [edi + 0x1c], 0xffffffff
je 0x4707d6
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 0x4707f9
cmp ecx, 0xffffffff
jne 0x4707f6
mov ebx, dword [edi + 0x1c]
cmp ebx, 0xffffffff
je 0x4707f9
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 0x470806
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
sub edx, ecx
jns 0x470813
mov dword [eax + 0x1c], ecx
mov ebx, dword [edi + 0xc]
call fcn.00444de0
cmp byte [edi + 0x21], 0
jne 0x470862
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x470840
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x470862
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x470834
jmp 0x470862
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x470860
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x470860
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x470850
mov edi, eax
cmp edi, esi
jne 0x470772
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x368]
mov dword [ebp - 0x58], 0
test eax, eax
jle 0x470888
push eax
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x364]
mov edi, dword [eax]
mov dword [ebp - 0x60], eax
cmp edi, eax
je 0x470a6b
jmp 0x4708a0
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 0x470a14
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 0x4708e8
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 0x4708fe
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 0x470923
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x47091a
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov ebx, eax
sub ecx, edx
jmp 0x47093b
cmp eax, 0xffffffff
je 0x470923
mov ebx, eax
jmp 0x47093e
mov edx, dword [edi + 0x18]
cmp edx, 0xffffffff
je 0x470941
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 0x47096b
mov esi, dword [edi + 0x1c]
cmp esi, 0xffffffff
je 0x470961
mov eax, dword [ebp - 0x18]
sub eax, esi
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
jmp 0x470993
cmp edx, 0xffffffff
je 0x47096b
mov dword [ebp - 0x10], edx
jmp 0x470990
mov edx, dword [edi + 0x1c]
cmp edx, 0xffffffff
je 0x47098d
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 0x470993
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, ebx
cmp ecx, 5
jge 0x4709a0
add ebx, 5
mov dword [ebp - 0xc], ebx
sub eax, edx
cmp eax, 5
jge 0x4709ad
add edx, 5
mov dword [ebp - 8], edx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 1
call edx
cmp dword [ebp - 0x58], 0
je 0x4709ef
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 0x470a3c
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 0x470a62
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x470a41
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x470a62
lea ecx, [ecx]
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x470a30
jmp 0x470a62
mov dword [ebp - 0x58], eax
jmp 0x470a14
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x470a60
lea ebx, [ebx]
cmp edi, dword [eax + 8]
jne 0x470a60
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x470a50
mov edi, eax
cmp edi, dword [ebp - 0x60]
jne 0x4708a0
mov ebx, dword [ebp - 0x5c]
cmp byte [ebx + 0xdd], 0
jne 0x470a80
push 1
mov edi, ebx
call fcn.004702d0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x470a8e
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 + 0xc8], 1
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [ebx + 0x364]
mov edi, dword [ecx]
mov esi, dword [ebp - 0x60]
cmp edi, esi
je 0x470b16
lea esp, [esp]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push 0
call eax
cmp byte [edi + 0x21], 0
jne 0x470b12
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
jne 0x470af1
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
jne 0x470b12
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x21], 0
je 0x470ae5
jmp 0x470b12
mov eax, dword [edi + 4]
cmp byte [eax + 0x21], 0
jne 0x470b10
lea ebx, [ebx]
cmp edi, dword [eax + 8]
jne 0x470b10
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x470b00
mov edi, eax
cmp edi, esi
jne 0x470ac0
cmp dword [ebx + 0x398], 0
je 0x470c3b
cmp dword [ebx + 0x38c], 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 0x470be0
push 8
call fcn.004881ae
add esp, 4
test eax, eax
je 0x470b64
mov dword [eax], 0
mov dword [eax + 4], 1
mov esi, eax
jmp 0x470b66
xor esi, esi
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x64], esi
call fcn.00477970
push esi
lea ecx, [ebp - 0x64]
push esi
push ecx
call fcn.0043ed50
mov eax, dword [ebp - 0x64]
mov edx, dword [ebx + 0x38c]
mov dword [ebx + 0x38c], eax
mov esi, dword [ebx + 0x390]
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov dword [ebp - 0x64], edx
mov dword [ebx + 0x390], eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x470bd2
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x470bd2
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 0x470bd2
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0x38c]
call fcn.00464920
mov esi, dword [ebx + 0x38c]
push 0x30
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.0048bb40
mov eax, dword [esi]
mov edx, dword [ebx + 0x398]
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 0x470c57
mov esi, dword [ebp - 0x5c]
call fcn.00470e40
mov ecx, dword [ebp - 0x68]
mov dword [ecx], 0
jmp 0x470c60
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.00487efe
mov esp, ebp
pop ebp
ret 8