Function at 0x4164d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503b84
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push 0x517304
mov ebx, 3
mov dword [0x54e764], 1
call fcn.00408500
lea eax, [esi + 0x10]
push 0x515f44
mov ebx, 1
mov dword [esi], 2
call fcn.00408500
push 0x54cfe0
push 8
call fcn.004cba2a
xor edi, edi
add esp, 8
cmp eax, edi
je 0x416559
mov dword [eax], vtable.MessagePopup::classmgr.0
mov dword [eax + 4], edi
jmp 0x41655b
xor eax, eax
mov edx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
push eax
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 0x410cf0
mov ecx, ebx
call eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0xa8], edi
cmp esi, edi
je 0x4165a5
push edi
push 1
mov dword [esi], edi
call fcn.0040c130
mov eax, esi
jmp 0x4165a7
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
mov esi, vtable.os::script_shared_ptr_class__variant__.0
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], esi
call fcn.0040ed50
mov dword [esp + 0xa8], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
push str.__is_svc__
mov ecx, ebx
call edx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xa8], 2
cmp eax, edi
je 0x416639
push edi
push edi
mov esi, eax
mov dword [eax], edi
call fcn.0040c130
mov eax, esi
mov esi, vtable.os::script_shared_ptr_class__variant__.0
jmp 0x41663b
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], esi
call fcn.0040ed50
mov dword [esp + 0xa8], 3
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x48]
push ecx
push str.__debug__
mov ecx, ebx
call edx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0xa8], 4
cmp eax, edi
je 0x416708
push 0x54cfe0
push 0x3c
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x10], eax
mov byte [esp + 0xa8], 5
cmp eax, edi
je 0x4166f5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0047395e
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx], 5
mov eax, ecx
jmp 0x41670a
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx], 5
mov eax, ecx
jmp 0x41670a
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], esi
call fcn.0040ed50
mov dword [esp + 0xa8], 6
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x30]
push eax
push str.__fullcmd__
mov ecx, ebx
call edx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0xa8], 7
cmp eax, edi
je 0x41679d
mov ecx, dword [0x548990]
push edi
push ecx
mov esi, eax
mov dword [eax], edi
call fcn.0040c190
mov eax, esi
mov esi, vtable.os::script_shared_ptr_class__variant__.0
jmp 0x41679f
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], esi
call fcn.0040ed50
mov dword [esp + 0xa8], 8
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x3c]
push eax
push str.__safetype__
mov ecx, ebx
call edx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xa8], 9
cmp eax, edi
je 0x416834
call fcn.00402cd0
mov esi, dword [esp + 0x10]
cdq
push edx
push eax
mov dword [esi], edi
call fcn.0040c130
mov eax, esi
mov esi, vtable.os::script_shared_ptr_class__variant__.0
jmp 0x416836
xor eax, eax
mov dword [esp + 0xa8], 0xffffffff
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], esi
call fcn.0040ed50
mov dword [esp + 0xa8], 0xa
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x54]
push ecx
push str.__safelite__
mov ecx, ebx
call edx
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], esi
call fcn.0040ea60
mov edi, dword [ebp + 8]
add edi, 0x19c
mov edx, 0x51730c
call fcn.004085a0
mov esi, dword [ebp + 8]
lea edi, [esi + 0x1a0]
mov edx, str.advtool
call fcn.004085a0
mov eax, dword [esi + 0x16c]
mov edx, dword [eax + 8]
lea ecx, [esi + 0x16c]
call edx
xor edi, edi
mov dword [esp + 0x64], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0xa8], 0xb
lea eax, [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [0x54f4d8]
add eax, 0x10
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x54f07c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call fcn.00405b60
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x60]
push str.Data_newsld_svc.dat
push ecx
call fcn.0045b533
add esp, 8
mov esi, dword [ebp + 8]
mov byte [esp + 0xa8], 0xc
mov eax, dword [eax]
push esi
mov ecx, eax
call fcn.00414f20
mov dword [esp + 0x14], eax
mov byte [esp + 0xa8], 0xb
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], edi
je 0x416a01
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], vtable.os::script_shared_ptr_class__variant__.0
call dword [vtable.os::script_shared_ptr_class__variant__.0]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xa8], 0xd
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x18]
push eax
push str.__svc_hwnd__
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4169e8
call fcn.0040ef50
test al, al
je 0x4169e8
lea edi, [esp + 0x64]
call fcn.0041a1c0
xor edi, edi
mov byte [esp + 0xa8], 0xb
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
mov eax, dword [esi + 0x16c]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x16c]
call edx
mov esi, dword [esi + 0x170]
cmp esi, edi
je 0x416a28
push 0x1770
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0041a070
mov eax, dword [esp + 0x74]
cmp eax, edi
je 0x416a42
push eax
call fcn.004cc15e
add esp, 4
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
cmp eax, edi
je 0x416a5b
push eax
call fcn.004cc15e
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4