Function at 0x497210
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52525a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
cmp ebx, 1
jne 0x497496
push dword [esi + 4]
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.004340b0
push 0xe70
call fcn.004e204b
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047d770
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x7f8]
mov dword [esi + 0x7fc], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::Control.virtual_28
jne 0x49729b
mov eax, dword [ecx + 0x188]
jmp 0x49729d
call eax
push eax
mov ecx, edi
call fcn.0043b220
mov ecx, dword [esi + 0x7fc]
push 1
push 0
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x7fc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1ec]
cmp eax, method.ui::Box.virtual_492
jne 0x4972d3
mov byte [ecx + 0xe48], 0
jmp 0x4972d7
push 0
call eax
mov eax, dword [esi + 0x7f8]
mov edx, dword [eax + 0xe74]
test edx, edx
je 0x497365
mov ecx, dword [esi + 0x7fc]
add ecx, 0xe18
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x7f8]
mov ebx, dword [eax + 0xe74]
cmp dword [ebx + 0x84c], 0
jne 0x497365
push 0x60
call fcn.004e204b
mov edx, eax
add esp, 4
mov dword [ebp - 0x2c], edx
lea ecx, [edx + 0x18]
mov dword [edx], vtable.ui::Layer.0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov word [edx + 0x14], 0
call fcn.004adb50
mov dword [edx + 0x58], 0
mov dword [edx + 0x5c], 0
mov byte [edx + 0x16], 1
mov dword [ebx + 0x84c], edx
push dword [esi + 0x7fc]
mov ecx, edi
call fcn.00438c40
cmp dword [esi + 0x808], 0
jne 0x497476
mov eax, dword [esi + 0x7f8]
mov ecx, dword [eax + 0xe74]
test ecx, ecx
je 0x497476
push 0x544ee0
lea eax, [ebp - 0x28]
push eax
call fcn.0044cec0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x4973c1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00435510
push 0x28
call fcn.004e204b
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.0046e1d0
mov ecx, dword [esi + 0x758]
push dword [esi + 4]
mov dword [esi + 0x808], eax
movss xmm2, dword [ecx + 4]
mov ecx, eax
call fcn.0046e2e0
mov eax, dword [esi + 0x808]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49740a
and byte [eax + 0xc], 0xf9
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00435a60
mov edi, eax
test edi, edi
je 0x49746e
push dword [edi]
mov ecx, dword [esi + 0x808]
call fcn.0046f2f0
push dword [edi + 0x10]
mov ecx, dword [esi + 0x808]
push dword [edi + 0xc]
call fcn.0046f3c0
mov eax, dword [edi + 4]
cmp eax, 0x14
ja 0x497449
mov ecx, dword [esi + 0x808]
push eax
call fcn.0046f340
movzx eax, byte [edi + 0xb]
cmp eax, 0xff
ja 0x497460
mov ecx, dword [esi + 0x808]
push eax
call fcn.0046f380
push dword [edi + 8]
mov ecx, dword [esi + 0x808]
call fcn.0046f430
lea ecx, [ebp - 0x28]
call fcn.00402450
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x10
jne 0x497554
mov ecx, dword [esi + 0x7f8]
mov edi, dword [ecx + 0xe74]
test edi, edi
je 0x4974d5
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::Control.virtual_28
jne 0x4974c3
mov eax, dword [ecx + 0x188]
jmp 0x4974c5
call eax
push 1
push dword [esi + 0x7f8]
mov ecx, edi
push eax
mov eax, dword [edi]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x7f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
cmp eax, method.ui::Control.virtual_76
jne 0x4974ef
lea edi, [ecx + 0x2a8]
jmp 0x4974f3
call eax
mov edi, eax
mov ecx, dword [edi]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x7f8]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [esi + 0x7f8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x15c]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp + 0x10]
lea ecx, [esi + 0x30]
push edi
push ebx
call fcn.00435c80
test al, al
je 0x49765d
mov eax, dword [ebp - 0x2c]
jmp 0x497478
cmp ebx, 0x202
jne 0x497607
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
mov ecx, dword [esi + 0x440]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
push 0xd
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push edx
push 0x43cca0
call dword [eax + 0x18c]
test eax, eax
je 0x497529
mov edx, dword [eax]
mov ecx, eax
mov edi, str.ScrollBar
call dword [edx + 0xc]
nop
mov cx, word [eax]
cmp cx, word [edi]
jne 0x4975e6
test cx, cx
je 0x4975e2
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x4975e6
add eax, 4
add edi, 4
test cx, cx
jne 0x4975c0
xor eax, eax
jmp 0x4975eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x497529
push 0
push 0
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x497529
cmp ebx, 0x100
jne 0x49763e
mov eax, dword [ebp + 0xc]
cmp eax, 0xd
je 0x4975f3
cmp eax, 0x1b
je 0x4975f3
mov ecx, dword [esi + 0x7f8]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 3
mov word [ebp - 0x44], ax
push edx
mov eax, dword [ecx]
call dword [eax + 0x1a0]
jmp 0x497476
cmp ebx, 8
jne 0x497529
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], edi
je 0x49752c
call fcn.00497190
jmp 0x49752c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497476
push dword [ebp + 0x10]
push edi
push ebx
push dword [esi + 4]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x497478