Function at 0x496da0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d60bb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5020a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x505d10]
test edi, edi
jne 0x496ecd
push 0x128
call fcn.0049fda7
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x496ebe
mov ecx, edi
call fcn.0040be40
mov dword [edi + 0xfc], vtable.CSingletonBase_class_CMainFrame_.0
mov dword [edi], vtable.CMainFrame.0
mov dword [edi + 0x34], vtable.CMainFrame.1.0
mov dword [edi + 0x58], vtable.CMainFrame.2.0
mov dword [edi + 0xfc], vtable.CMainFrame.3.0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
mov dword [edi + 0x104], edi
mov dword [edi + method.TXEventObserver_class_CInstall32HintMsg__class_IEventObserver_.virtual_0], vtable.TXEventObserverObj_class_CMainFrame_.0
mov dword [edi + 0x118], 0
lea esi, [edi + 0x11c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049fda7
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x124], 0
mov dword [edi + 0x108], method.CBaseImage.virtual_60
mov dword [edi + 0x10c], 0
jmp 0x496ec0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x505d10], edi
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x496ffe
push 1
mov ecx, edi
call fcn.004078b0
push 0xc0
call fcn.0049fda7
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x496f0d
mov ecx, eax
call fcn.00415d20
mov esi, eax
jmp 0x496f0f
xor esi, esi
push 2
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00416bb0
push 3
push 0x83
mov ecx, esi
call fcn.004159a0
movaps xmm0, xmmword [0x4d7ae0]
sub esp, 0x10
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.00416d40
push esi
mov ecx, edi
call fcn.0040fd30
push 0
mov ecx, edi
call fcn.0040df50
lea eax, [ebp - 0x30]
push eax
call fcn.00471ba0
add esp, 4
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movaps xmm0, xmmword [0x4d8080]
push 0
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push 0x40000
push SysReAllocString
mov dword [ecx], 0
movups xmmword [ebp - 0x20], xmm0
push dword [eax]
push ecx
mov eax, esp
lea ecx, [ebp - 0x20]
push 0
mov dword [eax], ecx
mov ecx, edi
call fcn.0040c380
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496fcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x496ffe
mov eax, ecx
lock xadd dword [esi + 4], eax
jne 0x496ffe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x496ffe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 1
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x58]
mov eax, dword [eax + 4]
call eax
push eax
call fcn.00473b20
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a024d
mov esp, ebp
pop ebp
ret