Function at 0x10017450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031d38
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], vtable.CFileHandler.0
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 0
call fcn.100171d0
push esi
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10016f20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100174f4
cmp dword [ebp - 0x2c], 0
je 0x100174f4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017590
mov dword [ebp - 0x14], vtable.CUtils.0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x24], 0
je 0x10017590
cmp dword [ebp - 0x2c], 0
je 0x10017590
lea ecx, [ebp - 0x30]
call fcn.10013c70
jmp 0x10017590
cmp eax, dword [ebx + 0x10]
je 0x10017529
test eax, eax
je 0x10017506
push eax
call fcn.1001df51
add esp, 4
push dword [ebx + 8]
lea ecx, [ebp - 0x30]
push dword [ebx + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1000a470
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b220
mov byte [ebp - 4], 3
mov edi, dword [eax + 0xc]
test edi, edi
je 0x10017575
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x1001756c
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10017562
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x1001756c
cmp eax, 0x2f
je 0x1001756c
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.1000a6b0
push edi
lea ecx, [ebp - 0x30]
call fcn.1000a740
mov dword [ebp - 0x50], vtable.CStringBufferW.0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10017590
push eax
call fcn.1001df51
add esp, 4
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x20], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 6
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.1000a470
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 8
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.1000a470
mov byte [ebp - 4], 7
mov byte [ebp - 4], 2
call fcn.10015df0
test eax, eax
je 0x1001777e
cmp dword [esi], 1
jne 0x10017626
mov ecx, ebx
call fcn.100177f0
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.10016840
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.100167a0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1001771a
cmp dword [ebp - 0x3c], 0
je 0x1001771a
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000b220
mov ebx, eax
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
call fcn.10010d00
mov dword [ebp - 0x20], vtable.CSetupRegW.0
push ebx
push esi
push edi
push eax
mov byte [ebp - 4], 0xf
call fcn.10014c90
mov dword [ebp - 0x70], vtable.CStringBufferW.0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x100176ae
push eax
call fcn.1001df51
add esp, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.10017920
mov dword [ebp - 0x40], vtable.CStringBufferW.0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x100176dc
push eax
call fcn.1001df51
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], vtable.CSeed.0
test eax, eax
je 0x1001770d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x50], vtable.CStringBufferW.0
mov byte [ebp - 4], 0x12
jmp 0x1001776e
mov dword [ebp - 0x40], vtable.CStringBufferW.0
mov byte [ebp - 4], 0xc
test eax, eax
je 0x10017732
push eax
call fcn.1001df51
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], vtable.CSeed.0
test eax, eax
je 0x10017763
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x50], vtable.CStringBufferW.0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1001777e
push eax
call fcn.1001df51
add esp, 4
mov dword [ebp - 0x30], vtable.CStringBufferW.0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10017799
push eax
call fcn.1001df51
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], vtable.CSeed.0
mov dword [ebp - 0x60], vtable.CStringBufferW.0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100177d0
push eax
call fcn.1001df51
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4