Function at 0x496f50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524ffa
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 0x4971d8
push dword [esi + 4]
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.00433e00
push 0xe70
mov dword [edi], esi
call fcn.004e1dfa
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047d470
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 0x496fdd
mov eax, dword [ecx + 0x188]
jmp 0x496fdf
call eax
push eax
mov ecx, edi
call fcn.0043af40
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::ListContainerElement.2.virtual_492
jne 0x497015
mov byte [ecx + 0xe48], 0
jmp 0x497019
push 0
call eax
mov eax, dword [esi + 0x7f8]
mov edx, dword [eax + 0xe74]
test edx, edx
je 0x4970a7
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 0x4970a7
push 0x60
call fcn.004e1dfa
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.004ad930
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.00438960
cmp dword [esi + 0x808], 0
jne 0x4971b8
mov eax, dword [esi + 0x7f8]
mov ecx, dword [eax + 0xe74]
test ecx, ecx
je 0x4971b8
push 0x544ea0
lea eax, [ebp - 0x28]
push eax
call fcn.0044cbe0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x497103
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00435260
push 0x28
call fcn.004e1dfa
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.0046ded0
mov ecx, dword [esi + 0x758]
push dword [esi + 4]
mov dword [esi + 0x808], eax
movss xmm2, dword [ecx + 4]
mov ecx, eax
call fcn.0046dfe0
mov eax, dword [esi + 0x808]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x49714c
and byte [eax + 0xc], 0xf9
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.004357b0
mov edi, eax
test edi, edi
je 0x4971b0
push dword [edi]
mov ecx, dword [esi + 0x808]
call fcn.0046eff0
push dword [edi + 0x10]
mov ecx, dword [esi + 0x808]
push dword [edi + 0xc]
call fcn.0046f0c0
mov eax, dword [edi + 4]
cmp eax, 0x14
ja 0x49718b
mov ecx, dword [esi + 0x808]
push eax
call fcn.0046f040
movzx eax, byte [edi + 0xb]
cmp eax, 0xff
ja 0x4971a2
mov ecx, dword [esi + 0x808]
push eax
call fcn.0046f080
push dword [edi + 8]
mov ecx, dword [esi + 0x808]
call fcn.0046f130
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.004e1bb1
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x10
jne 0x497296
mov ecx, dword [esi + 0x7f8]
mov edi, dword [ecx + 0xe74]
test edi, edi
je 0x497217
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::Control.virtual_28
jne 0x497205
mov eax, dword [ecx + 0x188]
jmp 0x497207
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 0x497231
lea edi, [ecx + 0x2a8]
jmp 0x497235
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.004359c0
test al, al
je 0x49739d
mov eax, dword [ebp - 0x2c]
jmp 0x4971ba
cmp ebx, 0x202
jne 0x497347
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 0x43c9c0
call dword [eax + 0x18c]
test eax, eax
je 0x49726b
mov edx, dword [eax]
mov ecx, eax
mov edi, str.ScrollBar
call dword [edx + 0xc]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x497326
test cx, cx
je 0x497322
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x497326
add eax, 4
add edi, 4
test cx, cx
jne 0x497300
xor eax, eax
jmp 0x49732b
sbb eax, eax
or eax, 1
test eax, eax
je 0x49726b
push 0
push 0
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x49726b
cmp ebx, 0x100
jne 0x49737e
mov eax, dword [ebp + 0xc]
cmp eax, 0xd
je 0x497333
cmp eax, 0x1b
je 0x497333
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 0x4971b8
cmp ebx, 8
jne 0x49726b
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], edi
je 0x49726e
call fcn.00496ed0
jmp 0x49726e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4971b8
push dword [ebp + 0x10]
push edi
push ebx
push dword [esi + 4]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x4971ba