Function at 0x476ac0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x476ea0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp ebx, 1
jne 0x476b11
mov esi, dword [ebp + 0x14]
lea ecx, [ebp + 0x1c]
push ecx
push esi
push eax
push 1
mov ecx, edi
mov dword [ebp + 0x1c], 1
call fcn.0046f710
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
je 0x476dac
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
cmp ebx, 2
jne 0x476b4e
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x476d81
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x476d84
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xe0], 0
mov dword [eax], 0
jmp 0x476dac
cmp ebx, 0x1a
jne 0x476b78
mov esi, dword [ebp + 0x14]
push esi
push eax
push ebx
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [edi + 0x24]
call fcn.0045fd70
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x476dac
cmp ebx, 0x14
jne 0x476ba1
mov ecx, dword [edi + 0x100]
xor eax, eax
mov edx, dword [ebp + 0x18]
test ecx, ecx
setne al
mov dword [edx], eax
test ecx, ecx
je 0x476da9
pop edi
pop esi
lea eax, [ebx - 0x13]
pop ebx
pop ebp
ret 0x18
cmp ebx, 7
jne 0x476be5
mov eax, dword [edi + 0x100]
test eax, eax
je 0x476da0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476da0
mov esi, dword [edi + 0x28]
call dword [sym.imp.USER32.dll_GetCapture]
cmp esi, eax
je 0x476da0
push dword [edi + 0x100]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x476da0
cmp ebx, 0x37f
jne 0x476c10
push dword [ebp + 0x14]
push 0
push ebx
push dword [edi + 0x100]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
cmp ebx, 0x4e
jne 0x476d8f
mov esi, dword [ebp + 0x14]
cmp dword [esi + 8], 0xfffffffe
jne 0x476c57
mov eax, dword [edi + 0x28]
cmp eax, dword [esi]
jne 0x476c4c
mov eax, dword [esi + 0xc]
test eax, eax
js 0x476c4c
cmp eax, dword [edi + 0x48]
jne 0x476c4c
push eax
lea ecx, [edi + 0x24]
call fcn.0046b720
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x476c4c
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x476c5a
mov eax, dword [ebp + 0x18]
cmp dword [esi + 8], 0xfffffdc4
jne 0x476c9e
mov eax, dword [edi + 0x28]
cmp eax, dword [esi]
jne 0x476c95
mov ecx, dword [esi + 0x10]
test ecx, ecx
js 0x476c95
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x54]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x476c84
xor eax, eax
jmp 0x476c87
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x476c95
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [esi + 8], 0xfffffdc3
jne 0x476ce2
mov eax, dword [edi + 0x28]
cmp eax, dword [esi]
jne 0x476cd9
mov ecx, dword [esi + 0xc]
test ecx, ecx
js 0x476cd9
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x54]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x476cc8
xor eax, eax
jmp 0x476ccb
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x476cd9
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xfffffdce
jne 0x476cf6
mov dword [eax], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xfffffdd8
jne 0x476d07
mov dword [eax], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xfffffdd9
jne 0x476dac
mov eax, dword [edi + 0x28]
cmp eax, dword [esi]
jne 0x476d84
mov ecx, dword [edi + 0x48]
test ecx, ecx
js 0x476d84
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x54]
sub eax, edx
sar eax, 2
cmp ecx, eax
jb 0x476d34
xor eax, eax
jmp 0x476d37
mov eax, dword [edx + ecx*4]
mov eax, dword [eax + 0x4c]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x476d84
mov ecx, dword [edi + 0x100]
mov dword [ebp + 0x14], ecx
cmp eax, ecx
je 0x476d84
push 1
mov ecx, edi
mov dword [edi + 0x100], eax
call fcn.0047d7f0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x476d6d
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x476dac
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jmp 0x476dac
cmp ebx, 5
jne 0x476da9
cmp eax, 1
je 0x476da0
push 1
call fcn.0047d7f0
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov esi, dword [ebp + 0x14]
lea eax, [ebx - 0x100]
cmp eax, 9
ja 0x476def
mov eax, dword [edi + 0x100]
test eax, eax
je 0x476def
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476def
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push dword [ebp + 0x10]
push ebx
push dword [edi + 0x100]
call eax
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
cmp ebx, 0x111
jne 0x476e0e
mov eax, dword [edi + 0x100]
test eax, eax
je 0x476e0e
push esi
push dword [ebp + 0x10]
push ebx
push eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
cmp byte [edi + 0xf8], 0
je 0x476e3f
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, edi
push ebx
call fcn.00479900
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x476c04
jmp 0x476e42
mov ecx, dword [ebp + 0x18]
cmp byte [edi + 0xf9], 0
je 0x476ea0
cmp ebx, 0x111
ja 0x476e6b
je case.0x476e7f.276
lea eax, [ebx - 0x2b]
cmp eax, 0x23
ja case.0x476e7f.278
movzx eax, byte [eax + 0x476eb4]
jmp dword [eax*4 + 0x476eac]
lea eax, [ebx - 0x114]
cmp eax, 0xfc
ja case.0x476e7f.278
movzx eax, byte [eax + 0x476ee0]
jmp dword [eax*4 + 0x476ed8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push esi
push dword [ebp + 0x10]
push ebx
push eax
jmp 0x476bf9
mov dword [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18