Function at 0x4e46a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
mov dword [esi], vtable.CCfgMgr.0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e46ce
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
mov edi, dword [esi + 0x300]
test edi, edi
je 0x4e4715
mov eax, dword [edi]
test eax, eax
je 0x4e470c
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [edi + 4]
push eax
call fcn.004e1850
push dword [edi]
call fcn.00412887
add esp, 0x14
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push edi
call fcn.00412887
add esp, 4
mov eax, dword [esi + 0x2c4]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4e472a
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x4e4739
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [esi + 0x31c]
test eax, eax
je 0x4e4782
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x320]
push eax
call fcn.004e1960
push dword [esi + 0x31c]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x31c], 0
mov dword [esi + 0x320], 0
mov dword [esi + 0x324], 0
mov eax, dword [esi + 0x310]
test eax, eax
je 0x4e47cb
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x314]
push eax
call fcn.004e1960
push dword [esi + 0x310]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x310], 0
mov dword [esi + 0x314], 0
mov dword [esi + 0x318], 0
mov eax, dword [esi + 0x304]
test eax, eax
je 0x4e4814
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x308]
push eax
call fcn.004e1960
push dword [esi + 0x304]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x304], 0
mov dword [esi + 0x308], 0
mov dword [esi + 0x30c], 0
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x4e485d
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x2f8]
push eax
call fcn.004e17a0
push dword [esi + 0x2f4]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x2f4], 0
mov dword [esi + 0x2f8], 0
mov dword [esi + 0x2fc], 0
mov eax, dword [esi + 0x2e8]
test eax, eax
je 0x4e48a6
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x2ec]
push eax
call fcn.004e17a0
push dword [esi + 0x2e8]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x4e48ef
push dword [ebp - 5]
lea ecx, [ebp - 1]
push ecx
push dword [esi + 0x2dc]
push eax
call fcn.004e1900
push dword [esi + 0x2d8]
call fcn.00412887
add esp, 0x14
mov dword [esi + 0x2d8], 0
mov dword [esi + 0x2dc], 0
mov dword [esi + 0x2e0], 0
lea edi, [esi + 0x2bc]
mov ebx, 9
lea ebx, [ebx]
cmp dword [edi - 4], 8
lea edi, [edi - 0x18]
jb 0x4e4913
push dword [edi]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
dec ebx
mov dword [edi + 0x10], 0
mov word [edi], ax
jns 0x4e4900
lea edi, [esi + 0x1cc]
lea ebx, [eax + 9]
cmp dword [edi - 4], 8
lea edi, [edi - 0x18]
jb 0x4e4945
push dword [edi]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
dec ebx
mov dword [edi + 0x10], 0
mov word [edi], ax
jns 0x4e4932
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4e496b
push eax
call fcn.0050a00d
mov esp, ebp
pop ebp
ret