Function at 0x4179b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4718c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x44]
xor ebp, ebp
cmp dword [ecx + 4], ebp
sete al
test al, al
jne 0x417ac3
mov eax, dword [ecx + 4]
cmp eax, ebp
jne 0x4179fc
push 0x80004003
call fcn.00452d50
lea esi, [esp + 0x20]
call fcn.00416cb0
mov dword [esp + 0x3c], ebp
mov edi, dword [esp + 0x20]
push ecx
mov eax, esp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], esp
mov dword [eax], edi
cmp edi, ebp
je 0x417a26
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
lea esi, [esp + 0x1c]
call fcn.004181d0
cmp eax, ebp
jge 0x417a40
cmp eax, 0x80004002
je 0x417a40
push eax
call fcn.00452d50
mov byte [esp + 0x3c], 1
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
sete al
test al, al
sete al
test al, al
je 0x417b1f
lea edx, [esp + 0x14]
push edx
call fcn.00417d10
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417aca
mov byte [esp + 0x3c], 1
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 0x417a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
cmp ebx, ebp
je 0x417aaf
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov dword [esp + 0x3c], 0xffffffff
cmp edi, ebp
je 0x417ac3
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
xor eax, eax
jmp 0x417cf5
mov edi, dword [esp + 0x14]
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0040adf0
mov byte [esp + 0x40], 3
cmp ebx, ebp
jne 0x417aee
push 0x80004003
call fcn.00452d50
mov ecx, ebx
mov byte [esp + 0x40], 2
call fcn.00418090
mov byte [esp + 0x3c], 1
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 0x417b1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 4]
cmp eax, ebp
jne 0x417b34
push 0x80004003
call fcn.00452d50
lea esi, [esp + 0x14]
call fcn.00418070
mov byte [esp + 0x3c], 4
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x417cb5
lea edx, [esp + 0x1c]
push edx
call fcn.00417dd0
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x417c90
mov dword [esp + 0x44], 0
mov bl, 6
mov byte [esp + 0x3c], bl
push str.sites.dll
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417b9b
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x44]
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], ecx
call fcn.00415c40
mov edi, dword [esp + 0x1c]
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0040adf0
mov byte [esp + 0x40], 7
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x417bd4
push 0x80004003
call fcn.00452d50
mov byte [esp + 0x40], bl
call fcn.00417fd0
mov edi, dword [esp + 0x1c]
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0040adf0
mov byte [esp + 0x40], 8
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x417c05
push 0x80004003
call fcn.00452d50
mov byte [esp + 0x40], bl
call fcn.00416da0
mov edx, dword [esp + 0x44]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x34]
push edx
push 0
push ebp
call eax
call fcn.0042bbe0
lea esi, [esp + 0x24]
call fcn.0042bce0
push ecx
mov byte [esp + 0x40], 9
mov eax, dword [eax]
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov edi, eax
call fcn.0040adf0
mov byte [esp + 0x40], 0xa
mov ecx, ebp
mov byte [esp + 0x40], 9
call fcn.00417f30
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 5
mov eax, dword [esp + 0x44]
test eax, eax
je 0x417c8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x3c], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 1
test ebp, ebp
je 0x417cc7
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
mov byte [esp + 0x3c], 0
test ebx, ebx
je 0x417cd8
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x417cf0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4