Function at 0x46e320
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6e88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0047b3bb
add esp, 4
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp dword [0x4e6e5c], 0xffffffff
jne 0x46e401
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.1.0.0.1220
call fcn.00405a20
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0047f304
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x38], 2
call fcn.0047f399
mov esi, eax
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
cmp esi, ebx
setge cl
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov dword [0x4e6e5c], ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e401
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x4e6e5c], 1
jne 0x46e501
mov eax, dword [0x4e9a84]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x46e424
push eax
call esi
test eax, eax
jne 0x46e430
call fcn.0046e130
mov dword [0x4e9a84], eax
jmp 0x46e435
mov eax, dword [0x4e9a84]
cmp eax, ebx
je 0x46e501
push eax
call esi
test eax, eax
je 0x46e501
mov eax, edi
mov dword [esp + 0x18], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e451
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0xbb8
sar eax, 1
lea ecx, [eax + eax + 2]
push 2
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [0x4e9a84]
push 0x4a
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
push esi
push str.msg__d__u
call fcn.00408b50
mov edx, str.RunSDISWithParam
mov ecx, eax
call fcn.00408ca0
add esp, 0xc
cmp esi, ebx
je 0x46e4c3
cmp dword [esp + 0x10], ebx
je 0x46e4c3
mov esi, 1
jmp 0x46e4c5
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e57e
push str.run_sdis
call fcn.00408b50
mov edx, str.RunSDISWithParam
mov ecx, eax
call fcn.00408ca0
mov ecx, dword [esp + 0x10]
add esp, 4
push 5
push edi
push ebx
call fcn.0040fe10
xor edx, edx
cmp eax, 0x20
setg dl
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e5a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret