Function at 0x10001d50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x1001a140
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x100210c4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10022c18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001e00
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
xor edx, edx
push 0x1001d48c
mov word [ecx], dx
call fcn.10001330
sub esp, 0x10
mov dword [esp + 0x44], 0
mov edi, dword [0x10022c18]
mov esi, esp
mov dword [esp + 0x34], esp
xor eax, eax
push esi
mov word [esi], ax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, 8
push edi
mov word [esi], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
test eax, eax
jne 0x10001ded
test edi, edi
je 0x10001ded
push 0x8007000e
mov dword [esi + 8], 0x8007000e
call fcn.100010f0
push ecx
mov byte [esp + 0x48], 1
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x1001d490
jmp 0x10001e59
mov edx, dword [0x10022c18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x10001e83
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
xor eax, eax
push 0x1001d48c
mov word [ecx], ax
call fcn.10001330
sub esp, 0x10
mov dword [esp + 0x44], 2
mov edx, dword [0x10022c18]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.100012c0
push ecx
mov byte [esp + 0x48], 3
mov ecx, esp
mov dword [esp + 0x34], esp
push str.CreateItemFromUrl
call fcn.10003890
mov ecx, dword [0x10022c14]
mov dword [esp + 0x48], 0xffffffff
call fcn.1000b830
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov ecx, dword [0x10022c18]
mov eax, dword [ecx - 0xc]
or esi, 0xffffffff
test eax, eax
jl 0x10001eb7
push 0x1001d4d8
push ecx
call fcn.1000cdc5
mov ecx, dword [0x10022c18]
add esp, 8
test eax, eax
je 0x10001eb7
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x10001f6f
cmp dword [ecx - 0xc], 0
jl 0x10001f07
push 0x1001d4dc
push ecx
call fcn.1000cdc5
mov ecx, dword [0x10022c18]
add esp, 8
test eax, eax
je 0x10001ee1
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x10001f6f
cmp dword [ecx - 0xc], 0
jl 0x10001f07
push 0x1001d4e0
push ecx
call fcn.1000cdc5
add esp, 8
test eax, eax
je 0x10001f07
mov ecx, dword [0x10022c18]
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x10001f6f
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x1001d48c
call fcn.10001310
sub esp, 0x10
mov dword [esp + 0x44], 4
mov eax, dword [0x10022c18]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.100012c0
push ecx
mov byte [esp + 0x48], 5
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x1001d4e4
call fcn.10003890
mov ecx, dword [0x10022c14]
mov dword [esp + 0x48], esi
call fcn.1000b830
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
cmp dword [ecx - 0xc], 0
jl 0x10002061
push 0x1001d4d8
push ecx
call fcn.1000cdc5
mov ecx, dword [0x10022c18]
add esp, 8
test eax, eax
je 0x10001f9d
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x10002061
cmp dword [ecx - 0xc], 0
jl 0x10002061
push 0x1001d4dc
push ecx
call fcn.1000cdc5
mov ecx, dword [0x10022c18]
add esp, 8
test eax, eax
je 0x10001fcb
sub eax, ecx
sar eax, 1
cmp eax, esi
jne 0x10002061
cmp dword [ecx - 0xc], 0
jl 0x10002061
push 0x1001d4e0
push ecx
call fcn.1000cdc5
add esp, 8
test eax, eax
je 0x10002061
sub eax, dword [0x10022c18]
sar eax, 1
cmp eax, esi
je 0x10002061
push 0
sub esp, 0x10
mov eax, esp
mov ecx, 3
mov dword [esp + 0x28], esp
mov word [eax], cx
mov dword [eax + 8], 0
sub esp, 0x10
mov dword [esp + 0x44], 6
mov edx, dword [0x10022c18]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.100012c0
push ecx
mov byte [esp + 0x48], 7
mov ecx, esp
mov dword [esp + 0x34], esp
push str.StartGame
call fcn.10003890
mov ecx, dword [0x10022c14]
mov dword [esp + 0x48], esi
call fcn.1000b830
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret