Function at 0x4a6156
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x4a63d5
mov eax, dword [esi]
call dword [eax + 0x170]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4a63d5
cmp dword [ebp + 8], 0
je 0x4a6196
mov ecx, dword [eax + 0xac]
test ecx, ecx
je 0x4a6196
mov eax, dword [ecx]
push 0
call dword [eax + 0x5c]
mov eax, dword [esi + 0xb4]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4a623b
lea eax, [esi + 0xb0]
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004aecfb
mov ebx, dword [eax]
test ebx, ebx
je 0x4a63d5
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0xc], eax
lea ecx, [eax - 0xe800]
cmp ecx, 0x1f
ja 0x4a6228
lea ecx, [eax - 0xe800]
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebx]
call dword [eax + 0x190]
test eax, eax
je 0x4a6200
mov eax, dword [ebp - 4]
or dword [ebp + 0xc], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x198]
test eax, eax
je 0x4a6217
cmp dword [ebp - 0xc], 0xe81f
je 0x4a6228
mov eax, dword [edi + 8]
mov ecx, esi
and eax, dword [ebp - 4]
push 1
push eax
push ebx
call fcn.004a6c4a
cmp dword [ebp - 8], 0
lea eax, [esi + 0xb0]
jne 0x4a61b2
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov dword [edi + 8], ecx
je 0x4a62fa
mov eax, dword [edi + 0x10]
mov ecx, esi
push 0
mov dword [esi + 0xe0], eax
call fcn.004a6d54
push dword [edi]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x100], 1
jne 0x4a6284
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetMenu]
jmp 0x4a628a
mov eax, dword [esi + 0x104]
mov dword [edi + 4], eax
test eax, eax
je 0x4a62ae
push 1
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x70]
and dword [esi + 0x118], 0xfffffffe
mov eax, dword [esi + 0x8c]
mov ecx, esi
mov dword [edi + 0x14], eax
and dword [esi + 0x8c], 0
push 0x7915
call fcn.004a480c
mov eax, 0xe900
cmp dword [edi], eax
je 0x4a62df
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4a63cc
push 0xea21
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x4a63cc
and dword [esi + 0xe0], 0
push 0xea21
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
mov ebx, 0xe900
test eax, eax
je 0x4a6343
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4a6337
push 0xea21
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
push 0xfffffffffffffff4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [edi + 4], 0
je 0x4a637d
push 1
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x100]
cmp eax, 1
jne 0x4a636f
push dword [edi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetMenu]
jmp 0x4a637d
cmp eax, 2
jne 0x4a637d
mov eax, dword [edi + 4]
mov dword [esi + 0x104], eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xac]
test ecx, ecx
je 0x4a6391
mov eax, dword [ecx]
push 1
call dword [eax + 0x5c]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x178]
cmp dword [edi], ebx
je 0x4a63ae
push dword [edi]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x4a63b1
mov eax, dword [ebp + 8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x14]
mov ecx, esi
push 1
mov dword [esi + 0x8c], eax
call fcn.004a6d54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00487999
int3