Function at 0x494170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4fe0a8]
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 [0x501cd0]
test edi, edi
jne 0x49429d
push 0x128
call fcn.0049cf37
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x49428e
mov ecx, edi
call fcn.0040bdb0
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.0049cf37
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 0x494290
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x501cd0], edi
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4943ce
push 1
mov ecx, edi
call fcn.00407820
push 0xc0
call fcn.0049cf37
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4942dd
mov ecx, eax
call fcn.00415ca0
mov esi, eax
jmp 0x4942df
xor esi, esi
push 2
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00416b30
push 3
push 0x83
mov ecx, esi
call fcn.00415920
movaps xmm0, xmmword [0x4d4ae0]
sub esp, 0x10
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.00416cc0
push esi
mov ecx, edi
call fcn.0040fcb0
push 0
mov ecx, edi
call fcn.0040dec0
lea eax, [ebp - 0x30]
push eax
call fcn.0046f550
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 [0x4d5080]
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.0040c2f0
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 0x49439f
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 0x4943ce
mov eax, ecx
lock xadd dword [esi + 4], eax
jne 0x4943ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4943ce
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.004714e0
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.0049d3dd
mov esp, ebp
pop ebp
ret