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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505f98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0045b588
add esp, 4
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp dword [0x54ad88], 0xffffffff
jne 0x449a05
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.1.0.0.1220
call fcn.004085e0
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0045bbe4
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x38], 2
call fcn.0045bcb1
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 0x4499d2
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 [0x54ad88], ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x449a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x54ad88], 1
jne 0x449b01
mov eax, dword [0x54f740]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x449a28
push eax
call esi
test eax, eax
jne 0x449a34
call fcn.00449730
mov dword [0x54f740], eax
jmp 0x449a39
mov eax, dword [0x54f740]
cmp eax, ebx
je 0x449b01
push eax
call esi
test eax, eax
je 0x449b01
mov eax, edi
mov dword [esp + 0x18], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x449a55
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 [0x54f740]
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.00401f50
mov edx, str.RunSDISWithParam
mov ecx, eax
call fcn.00401fd0
add esp, 0xc
cmp esi, ebx
je 0x449ac5
cmp dword [esp + 0x10], ebx
je 0x449ac5
mov ebx, 1
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 0x449aed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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 0x449b7e
push str.run_sdis
call fcn.00401f50
mov edx, str.RunSDISWithParam
mov ecx, eax
call fcn.00401fd0
mov ecx, dword [esp + 0x10]
add esp, 4
push 5
push edi
push ebx
call fcn.00405060
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 0x449b6a
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 0x449ba6
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