Function at 0x416a80
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503a86
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41714a
mov edx, dword [ebp + 0x10]
mov dword [0x54e764], edx
lea eax, [esi + 4]
test edi, edi
jne 0x416afa
xor ecx, ecx
jmp 0x416b0f
mov ecx, edi
lea ebx, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x416b00
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
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 0x416b4f
mov dword [eax], vtable.MessagePopup::classmgr.0
mov dword [eax + 4], edi
jmp 0x416b51
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 + 0x24], esi
mov dword [esp + 0x2e0], edi
cmp esi, edi
je 0x416b9b
push edi
push 1
mov dword [esi], edi
call fcn.0040c130
mov eax, esi
jmp 0x416b9d
xor eax, eax
mov dword [esp + 0x2e0], 0xffffffff
mov esi, vtable.os::script_shared_ptr_class__variant__.0
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], esi
call fcn.0040ed50
mov dword [esp + 0x2e0], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x40]
push eax
push str.__is_svc__
mov ecx, ebx
call edx
mov dword [esp + 0x2e0], 0xffffffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x2e0], 2
cmp eax, edi
je 0x416c2f
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 0x416c31
xor eax, eax
mov dword [esp + 0x2e0], 0xffffffff
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], esi
call fcn.0040ed50
mov dword [esp + 0x2e0], 3
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x58]
push ecx
push str.__debug__
mov ecx, ebx
call edx
mov dword [esp + 0x2e0], 0xffffffff
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2e0], 4
cmp eax, edi
je 0x416cfe
push 0x54cfe0
push 0x3c
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x14], eax
mov byte [esp + 0x2e0], 5
cmp eax, edi
je 0x416ceb
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0047395e
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx], 5
mov eax, ecx
jmp 0x416d00
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx], 5
mov eax, ecx
jmp 0x416d00
xor eax, eax
mov dword [esp + 0x2e0], 0xffffffff
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], esi
call fcn.0040ed50
mov dword [esp + 0x2e0], 6
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x4c]
push eax
push str.__fullcmd__
mov ecx, ebx
call edx
mov dword [esp + 0x2e0], 0xffffffff
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x2e0], 7
cmp eax, edi
je 0x416d93
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 0x416d95
xor eax, eax
mov dword [esp + 0x2e0], 0xffffffff
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x74], esi
call fcn.0040ed50
mov dword [esp + 0x2e0], 8
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x70]
push eax
push str.__safetype__
mov ecx, ebx
call edx
mov dword [esp + 0x2e0], 0xffffffff
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], esi
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x2e0], 9
cmp eax, edi
je 0x416e2a
call fcn.00402cd0
mov esi, dword [esp + 0x18]
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 0x416e2c
xor eax, eax
mov dword [esp + 0x2e0], 0xffffffff
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x68], esi
call fcn.0040ed50
mov dword [esp + 0x2e0], 0xa
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x64]
push ecx
push str.__safelite__
mov ecx, ebx
call edx
mov dword [esp + 0x2e0], 0xffffffff
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], esi
call fcn.0040ea60
push 0x208
lea eax, [esp + 0xc8]
push edi
push eax
call fcn.004d7710
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x416f8a
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], edi
call fcn.004085e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x2f4], 0xb
call fcn.0045bbe4
mov esi, dword [eax]
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2e0], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x416f8a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push 0x515e2c
add edi, 0x1e0
call fcn.00404c10
add esp, 0x14
xor edi, edi
mov edx, dword [esp + 0x28]
cmp edx, edi
je 0x416fac
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416f97
sub eax, esi
je 0x416fac
mov eax, dword [ebx]
push edx
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x16c]
mov edx, dword [eax + 8]
add ecx, 0x16c
mov dword [esp + 0x28], ecx
call edx
mov dword [esp + 0x8c], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x2e0], 0xf
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], eax
mov eax, dword [0x54f4d8]
add eax, 0x10
push eax
mov dword [esp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x54f07c]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
call fcn.00405b60
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x80]
call fcn.00414f20
test eax, eax
je 0x4170e3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], vtable.os::script_shared_ptr_class__variant__.0
call dword [vtable.os::script_shared_ptr_class__variant__.0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x2e0], 0x10
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
push str.__svc_hwnd__
mov ecx, ebx
call edx
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4170ca
call fcn.0040ef50
test al, al
je 0x4170ca
lea edi, [esp + 0x8c]
call fcn.0041a1c0
xor edi, edi
mov byte [esp + 0x2e0], 0xf
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x170]
cmp eax, edi
je 0x417108
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0041a070
mov eax, dword [esp + 0x9c]
cmp eax, edi
je 0x417128
push eax
call fcn.004cc15e
add esp, 4
mov dword [esp + 0x9c], edi
mov eax, dword [esp + 0x90]
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
cmp eax, edi
je 0x41714a
push eax
call fcn.004cc15e
add esp, 4
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 0xc