Function at 0x4746c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x69301c]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
jne 0x474742
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x474758
mov edi, dword [ebx + 0x7c]
cmp dword [edi + 4], 0
je 0x474738
push dword [edi + 0x14]
call fcn.005ecc17
push 0xfffffffffffffffc
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp esi, eax
jne 0x474738
push dword [edi + 0x20]
push 0xfffffffffffffffc
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x474738
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0x20], eax
mov dword [edi + 4], 0
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x111
je 0x474738
cmp eax, 0x1c
jne 0x474794
cmp dword [ebp + 0x10], 0
mov eax, dword [ebx + 0x7c]
jne 0x47478b
push 0
mov dword [eax + 0x24], 0
mov eax, dword [ebx + 0x7c]
push 0
push 0x86
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x474738
mov dword [eax + 0x24], 1
jmp 0x474738
cmp eax, 0xf
jne 0x4747c0
sub esp, 0x10
call fcn.00475320
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 5
jne 0x474810
call fcn.004755b0
mov ecx, ebx
call fcn.00475670
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x474ed7
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
je 0x474ed7
cmp eax, 0x85
jne 0x47492c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], edi
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x54], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x4c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x4c]
push eax
push dword [ebx + 4]
call esi
test eax, eax
je 0x47487a
lea eax, [esp + 0x54]
push eax
push dword [ebx + 4]
call esi
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
neg eax
push eax
mov eax, dword [esp + 0x50]
neg eax
push eax
lea eax, [esp + 0x44]
push eax
call esi
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push edi
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov eax, dword [esp + 0x50]
neg eax
push eax
mov eax, dword [esp + 0x50]
neg eax
push eax
lea eax, [esp + 0x54]
push eax
call esi
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
test edi, edi
je 0x4748ff
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
call edi
push 0
push 0
push 0
mov esi, eax
lea eax, [esp + 0x58]
push eax
push 2
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push esi
push dword [esp + 0x18]
call edi
mov edi, dword [esp + 0x14]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x47497b
mov eax, dword [ebp + 0x10]
cmp eax, 0x1b
jne 0x47494b
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x474738
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00475a10
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474738
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x474738
movzx ecx, di
cmp eax, 0x84
jne 0x4749fe
lea eax, [esp + 0x3c]
shr edi, 0x10
push eax
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movsx ebx, cx
movsx edi, di
movups xmmword [esp + 0x40], xmm0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x14
call esi
mov ecx, dword [esp + 0x44]
sub ecx, eax
push 2
mov dword [esp + 0x40], ecx
call esi
mov ecx, dword [esp + 0x48]
push edi
sub ecx, eax
lea eax, [esp + 0x40]
push ebx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 0x10
inc eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x201
jne 0x474ad5
shr edi, 0x10
movsx eax, cx
mov ecx, ebx
movsx edi, di
push edi
push eax
mov dword [esp + 0x20], eax
call fcn.00475780
mov esi, eax
test esi, esi
js 0x474aa2
push 1
push esi
mov ecx, ebx
call fcn.004758d0
test al, al
jne 0x474a40
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebx + 0x74]
mov dword [ebx + 0x6c], esi
push esi
mov eax, dword [ecx]
call dword [eax + 0x88]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [esp + 0x20]
push 1
push 0xf
push 0xf
push 0
push eax
call esi
test eax, eax
je 0x474a95
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop
lea eax, [esp + 0x20]
push eax
call edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0xf
push 0xf
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x474a70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x474ecc
lea eax, [esp + 0x3c]
xorps xmm0, xmm0
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x44], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x474ed7
jmp 0x474ecc
cmp eax, 0x204
je 0x474ecc
cmp eax, 0x20
jne 0x474bb5
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], 0
push eax
push dword [ebx + 4]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movups xmmword [esp + 0x44], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x3c]
push eax
push dword [ebx + 4]
call edi
test eax, eax
je 0x474b2d
lea eax, [esp + 0x44]
push eax
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x14
call esi
mov ecx, dword [esp + 0x44]
sub ecx, eax
push 2
mov dword [esp + 0x40], ecx
call esi
mov ecx, dword [esp + 0x48]
sub ecx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call edi
push dword [esp + 0x1c]
lea eax, [esp + 0x40]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x474738
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x18
jne 0x474c05
cmp dword [ebp + 0x10], 0
jne 0x474bce
mov dword [ebx + 0x6c], 0xffffffff
mov dword [ebx + 0x60], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xa1
jne 0x474c7c
lea eax, [esp + 0x3c]
shr edi, 0x10
push eax
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movsx ebx, cx
movsx edi, di
movups xmmword [esp + 0x40], xmm0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x14
call esi
mov ecx, dword [esp + 0x44]
sub ecx, eax
push 2
mov dword [esp + 0x40], ecx
call esi
mov ecx, dword [esp + 0x48]
push edi
sub ecx, eax
lea eax, [esp + 0x40]
push ebx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x474738
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x40]
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x474738
cmp eax, 0x115
jne 0x474d22
mov eax, dword [ebp + 0x10]
mov edx, eax
mov esi, dword [ebx + 0x60]
mov ecx, esi
movzx eax, ax
shr edx, 0x10
cmp eax, 5
ja case.0x474c9c.4
jmp dword [eax*4 + 0x474efc]
sub ecx, dword [ebx + 0x68]
mov dword [ebx + 0x60], ecx
jns case.0x474c9c.4
mov dword [ebx + 0x60], 0
xor ecx, ecx
jmp case.0x474c9c.4
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x70]
sub edx, eax
lea ecx, [eax + esi]
mov dword [ebx + 0x60], ecx
cmp ecx, edx
jl case.0x474c9c.4
mov ecx, edx
mov dword [ebx + 0x60], edx
push 1
push ecx
push 2
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_SetScrollPos]
cmp esi, dword [ebx + 0x60]
je 0x474738
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x474738
lea ecx, [esi - 1]
mov dword [ebx + 0x60], ecx
test ecx, ecx
jns case.0x474c9c.4
mov dword [ebx + 0x60], 0
xor ecx, ecx
jmp case.0x474c9c.4
mov eax, dword [ebx + 0x70]
lea ecx, [esi + 1]
sub eax, dword [ebx + 0x68]
mov dword [ebx + 0x60], ecx
cmp ecx, eax
jl case.0x474c9c.4
mov dword [ebx + 0x60], eax
mov ecx, eax
jmp case.0x474c9c.4
cmp eax, 0x200
jne 0x474d73
shr edi, 0x10
movsx eax, di
movsx ecx, cx
push eax
push ecx
mov ecx, ebx
call fcn.00475780
test eax, eax
js 0x474ed7
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
je 0x474ed7
cmp eax, 0x24
jne 0x474e0d
cmp dword [ebx + 4], 0
je 0x474ed7
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
mov dword [esp + 0x18], eax
call eax
mov esi, eax
push 0x21
add esi, esi
call dword [esp + 0x18]
push 0xa
add esi, eax
call dword [esp + 0x18]
add eax, esi
mov esi, dword [esp + 0x14]
push 6
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [ebx + 0x64]
mov ecx, eax
mov eax, dword [ebx + 0x70]
add ecx, ecx
imul edx, eax
dec eax
add edx, ecx
cmp dword [ebx + 0x68], eax
mov eax, dword [esp + 0x18]
jle 0x474ddb
cmp edx, eax
jl 0x474ddd
mov edx, eax
push 0x15
mov dword [edi + 0x1c], edx
call esi
mov ecx, dword [esp + 0x10]
shl eax, 2
mov dword [edi + 0x18], eax
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x83
jne 0x474e52
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
call esi
neg eax
push eax
push 5
call esi
neg eax
push eax
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x20a
jne 0x474eb9
mov eax, dword [ebp + 0x10]
and eax, 0xffff0000
cmp eax, 0x780000
sbb eax, eax
and eax, 2
dec eax
add dword [ebx + 0x60], eax
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
cmp edx, ecx
mov eax, edx
cmovge eax, ecx
test eax, eax
jns 0x474e87
xor ecx, ecx
jmp 0x474e8c
cmp edx, ecx
cmovl ecx, edx
mov dword [ebx + 0x60], ecx
mov ecx, ebx
call fcn.00475850
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword [ecx], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x474742
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0x24], 0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x10]
mov eax, 1
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005eb48e
mov esp, ebp
pop ebp
ret 0x18