Function at 0x450b50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d8910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.004509e0
test al, al
jne 0x450bd5
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x450dcb
push 0
push str.scripts_d.yds
mov edi, ebp
call fcn.0040e4a0
lea ecx, [esp + 0x3c]
push ebp
push ecx
lea ebx, [esp + 0x24]
call fcn.00439ad0
add esp, 0x10
mov byte [esp + 0x28], 1
call fcn.004082a0
xor ebx, ebx
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450c25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x30]
mov eax, ebp
call fcn.004082a0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.00405a00
mov byte [esp + 0x28], 2
jmp 0x450c50
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
push ecx
push str.scripts_d.yds
lea edi, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.0040e4a0
mov edi, dword [esp + 0x24]
add esp, 8
mov eax, edi
lea esi, [esp + 0x34]
call fcn.00424db0
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x34]
test eax, eax
je 0x450d30
test edx, edx
jne 0x450cb0
xor eax, eax
jmp 0x450cc4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450cb5
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, ebp
call fcn.00405e30
mov bl, 2
lea eax, [edi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450d15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00405a00
mov byte [esp + 0x28], bl
jmp 0x450c50
test edx, edx
jne 0x450d38
xor eax, eax
jmp 0x450d4f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450d40
sub eax, esi
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x30]
push edx
call fcn.00405e30
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450d7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450dc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8