Function at 0x4919f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x491a71
mov eax, dword [edi + 0xc]
test eax, eax
je 0x491a71
mov ecx, dword [edi + 0x10]
sub ecx, eax
sar ecx, 4
je 0x491a71
test eax, eax
je 0x491a21
mov edx, dword [edi + 0x10]
sub edx, eax
sar edx, 4
jne 0x491a26
call fcn.00578ff3
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x491a71
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
je 0x491a71
mov eax, dword [edi + 0xc]
test eax, eax
je 0x491a4b
mov ecx, dword [edi + 0x10]
sub ecx, eax
sar ecx, 4
jne 0x491a50
call fcn.00578ff3
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 4]
test eax, eax
je 0x491a64
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
jne 0x491a69
call fcn.00578ff3
mov eax, dword [esi + 4]
mov esi, dword [eax]
mov dword [ebp + 8], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
lea edx, [ebx + 2]
je 0x491ab1
mov ecx, dword [esi + 0x38]
cmp ecx, 1
je 0x491aa8
mov eax, dword [esi + 0x64]
test eax, eax
je 0x491aa3
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x28], 1
jmp 0x491ab1
cmp ecx, 1
jne 0x491ab1
mov ebx, esi
mov dword [esp + 0x10], esi
mov dword [esi + 0x60], edx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jmp 0x491ac0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491c13
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x491c13
test ecx, ecx
je 0x491aeb
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp edx, eax
jb 0x491af0
call fcn.00578ff3
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x491b08
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
jne 0x491b0d
call fcn.00578ff3
mov edx, dword [esi + 4]
mov esi, dword [edx]
mov ecx, dword [edi]
mov dword [esp + 0x1c], esi
call fcn.00490d70
test ebx, ebx
je 0x491bfc
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x38], 1
jne 0x491be4
mov ecx, esi
cmp eax, ecx
je 0x491be4
xor ecx, ecx
mov eax, esi
mov dword [eax + 0x28], ecx
mov dword [eax + 0x60], ecx
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491b65
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x491b6a
call fcn.00578ff3
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x491be4
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x491be4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491b99
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x491b9e
call fcn.00578ff3
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x18]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x491bb8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x491bbd
call fcn.00578ff3
mov edx, dword [esi + 4]
mov esi, dword [edx + ebx*4]
mov ecx, dword [edi]
call fcn.00490d70
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x60], 0
add ebx, 1
jmp 0x491b50
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x38], 1
jne 0x491bfc
cmp eax, dword [esp + 0x1c]
jne 0x491bfc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0x10
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x491ac0
xor edx, edx
cmp dword [esp + 0xc], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edx
jle 0x491cd3
mov dword [esp + 0x18], edx
jmp 0x491c35
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491cd3
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp edx, eax
jae 0x491cd3
test ecx, ecx
je 0x491c60
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp edx, eax
jb 0x491c65
call fcn.00578ff3
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x491c7d
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
jne 0x491c82
call fcn.00578ff3
mov eax, dword [esi + 4]
mov esi, dword [eax]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
add ebx, ecx
push 1
mov edx, ebx
sub edx, ecx
push edx
push eax
mov eax, dword [esi]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x10
add eax, 1
add ebx, 0xffffffff
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jl 0x491c31
mov eax, dword [ebp + 8]
test eax, eax
je 0x491dd7
mov ebx, 1
cmp dword [eax + 0x38], ebx
jne 0x491dd7
mov esi, dword [esp + 0xc]
shl esi, 4
mov dword [esp + 0x1c], esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491d0c
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0xc], eax
jb 0x491d11
call fcn.00578ff3
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi + 4]
add eax, esi
test ecx, ecx
je 0x491dd7
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x491dd7
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491d47
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0xc], eax
jb 0x491d4c
call fcn.00578ff3
mov esi, dword [edi + 0xc]
add esi, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x491d66
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x491d6b
call fcn.00578ff3
mov edx, dword [esi + 4]
mov esi, dword [edx + ebx*4]
cmp dword [esi + 0x24], 0
jne 0x491d83
mov esi, dword [esp + 0x1c]
add ebx, 1
jmp 0x491cf7
mov eax, 1
cmp dword [esi + 0x38], eax
jne 0x491da1
xor eax, eax
cmp dword [esi + 0x28], eax
mov dword [esi + 0x60], 0
sete al
mov dword [esi + 0x28], eax
jmp 0x491dae
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 4], eax
mov dword [esi + 0x60], 2
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
push esi
push edx
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x18], 0
nop
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491f42
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0xc], eax
jae 0x491f42
test ecx, ecx
je 0x491e0f
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0xc], eax
jb 0x491e14
call fcn.00578ff3
mov edx, dword [esp + 0xc]
mov eax, dword [edi + 0xc]
mov ebx, edx
shl ebx, 4
mov ecx, dword [eax + ebx + 4]
add eax, ebx
test ecx, ecx
je 0x491f42
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x18], eax
jae 0x491f42
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491e53
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp edx, eax
jb 0x491e58
call fcn.00578ff3
mov esi, dword [edi + 0xc]
mov ecx, dword [esi + ebx + 4]
add esi, ebx
test ecx, ecx
je 0x491e73
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x491e78
call fcn.00578ff3
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x18]
mov esi, dword [edx + ebx*4]
mov ecx, dword [edi]
call fcn.00490d70
cmp dword [ebp + 8], esi
je 0x491e95
mov dword [esi + 0x60], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x491f2d
cmp dword [esi + 0x38], 1
jne 0x491eed
test ebx, ebx
jne 0x491eed
mov eax, dword [esp + 0x24]
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
add ebx, eax
push 1
mov edx, ebx
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi]
push 0
push eax
mov dword [esi + 0x60], 2
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
add ebx, 0xffffffff
add dword [esp + 0x18], 1
mov dword [esp + 0x24], ebx
jmp 0x491de0
test eax, eax
je 0x491f2d
mov eax, dword [esp + 0x24]
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
add ebx, eax
push 1
mov edx, ebx
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
add ebx, 0xffffffff
add dword [esp + 0x18], 1
mov dword [esp + 0x24], ebx
jmp 0x491de0
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
add dword [esp + 0x18], 1
jmp 0x491de0
mov ecx, dword [edi]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov ecx, dword [edi + 0xc]
sub eax, 3
test ecx, ecx
mov dword [esp + 0x2c], eax
jne 0x491f6a
xor eax, eax
jmp 0x491f72
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
add eax, 0xffffffff
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
jle 0x492019
mov ebx, eax
shl ebx, 4
mov dword [esp + 0x1c], ebx
jmp 0x491f94
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491fa9
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x491fae
call fcn.00578ff3
mov esi, dword [edi + 0xc]
mov eax, dword [esi + ebx + 4]
add esi, ebx
test eax, eax
je 0x491fc5
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
jne 0x491fca
call fcn.00578ff3
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x34]
mov esi, ecx
sub esi, dword [ebx + 0x30]
push 1
sub ecx, esi
push ecx
mov ecx, dword [ebx]
push eax
push esi
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [ebx]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
sub dword [esp + 0x1c], 0x10
sub eax, 1
add esi, 1
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
jg 0x491f90
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4