Function at 0x4175b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x472b18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp dword [eax + 4], ebx
sete cl
test cl, cl
jne 0x4177fb
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4175fc
push 0x80004003
call fcn.00452d50
lea esi, [esp + 0x14]
call fcn.00416cb0
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x14]
push ecx
mov eax, esp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], esp
mov dword [eax], edi
cmp edi, ebx
je 0x417626
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
lea esi, [esp + 0x1c]
call fcn.004181d0
cmp eax, ebx
jge 0x417640
cmp eax, 0x80004002
je 0x417640
push eax
call fcn.00452d50
mov byte [esp + 0x30], 1
mov esi, dword [esp + 0x18]
cmp esi, ebx
sete al
test al, al
sete al
test al, al
je 0x417771
lea edx, [esp + 0x38]
push edx
call fcn.00417800
mov bl, 2
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
test eax, eax
je 0x4177b1
mov edi, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.0040adf0
mov byte [esp + 0x34], 3
test esi, esi
jne 0x4176a4
push 0x80004003
call fcn.00452d50
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00418130
lea edx, [esp + 0x20]
push edx
call fcn.004173d0
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, str.default_theme.ui
mov byte [esp + 0x38], 4
call fcn.004061e0
add esp, 8
mov bl, 6
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4176f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call ebp
test eax, eax
je 0x417723
mov edi, dword [esp + 0x1c]
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0040adf0
mov byte [esp + 0x34], 7
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00418130
mov byte [esp + 0x30], 2
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 0x417748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41776d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov byte [esp + 0x30], 0
test esi, esi
je 0x417782
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov dword [esp + 0x30], 0xffffffff
test edi, edi
je 0x417796
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4177d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
test esi, esi
je 0x4177e7
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov dword [esp + 0x30], 0xffffffff
test edi, edi
je 0x4177fb
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
xor eax, eax
jmp 0x41779b