Function at 0x417050
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbadb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ebp - 0xe8], esp
push 3
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x51c814
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 1
mov edx, 0x53c75c
cmp dword [0x53c770], 8
cmovae edx, dword [0x53c75c]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417100
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
je 0x417266
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417266
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
cmp dword [0x53c7d0], 8
mov eax, 0x53c7bc
push dword [0x53c7cc]
cmovae eax, dword [0x53c7bc]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], 0xc
call fcn.0041a5b0
push 0
push 0x53c804
push 0x53c7ec
call fcn.004176e0
test al, al
jne 0x4171ec
push 0
push 0x53c81c
push 0x53c7ec
call fcn.004176e0
mov byte [ebp - 0x54], 0
test al, al
je 0x4171f0
mov byte [ebp - 0x54], 1
mov esi, dword [0x53cd90]
lea eax, [ebp - 0x88]
push eax
cmp dword [0x53cd94], esi
je 0x417250
mov ecx, esi
mov dword [ebp - 0xe4], esi
call fcn.0041a300
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0x50]
mov al, byte [ebp - 0x54]
lea ecx, [ebp - 0x88]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x417661
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0x88]
jmp 0x417661
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0xe4], esp
push 0xf
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.UninstallString
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 4
mov edx, 0x53c774
cmp dword [0x53c788], 8
cmovae edx, dword [0x53c774]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172c4
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
jne 0x417416
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0xe4], esp
push 0xf
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.UninstallString
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 5
mov edx, 0x53c78c
cmp dword [0x53c7a0], 8
cmovae edx, dword [0x53c78c]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417354
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
jne 0x417416
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0xe4], esp
push 0xf
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.UninstallString
mov word [ecx], ax
call fcn.0041a5b0
mov byte [ebp - 4], 6
mov edx, 0x53c7a4
cmp dword [0x53c7b8], 8
cmovae edx, dword [0x53c7a4]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4173e4
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041a5b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0
push eax
push 0x80000002
call fcn.00415f10
test al, al
je 0x417666
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp edi, 8
push 1
cmovae ecx, dword [ebp - 0x2c]
push 0x51c798
push 0xffffffffffffffff
call fcn.0041b170
mov ecx, eax
add esp, 0xc
cmp dword [ebp - 0x1c], ecx
jb 0x4176bc
cmp edi, 8
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
push 1
push 0x51c798
push 0xffffffffffffffff
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmp edi, 8
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0041b170
mov ecx, eax
add esp, 0xc
cmp dword [ebp - 0x1c], ecx
jb 0x4176c1
cmp edi, 8
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
push 0x53c7d4
push 0x51c798
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x100]
push eax
call fcn.0041a9b0
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4174bb
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041a710
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xec]
cmp edx, 8
jb 0x41750b
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176c6
push edx
push ecx
call fcn.0048e9ad
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417666
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
mov byte [ebp - 0xac], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe0]
cmp dword [0x53c7d0], 8
mov eax, 0x53c7bc
push dword [0x53c7cc]
cmovae eax, dword [0x53c7bc]
push eax
call fcn.0041a5b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc8], 0xc
call fcn.0041a5b0
push 0
push 0x53c804
push 0x53c7ec
call fcn.004176e0
test al, al
jne 0x4175e3
push 0
push 0x53c81c
push 0x53c7ec
call fcn.004176e0
mov byte [ebp - 0xac], 0
test al, al
je 0x4175ea
mov byte [ebp - 0xac], 1
mov esi, dword [0x53cd90]
lea eax, [ebp - 0xe0]
push eax
cmp dword [0x53cd94], esi
je 0x417650
mov ecx, esi
mov dword [ebp - 0xe4], esi
call fcn.0041a300
mov byte [ebp - 4], 9
lea ecx, [esi + 0x1c]
mov eax, dword [ebp - 0xc8]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041a300
movups xmm0, xmmword [ebp - 0xa8]
mov al, byte [ebp - 0xac]
mov byte [esi + 0x34], al
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [ebp - 0x98]
movups xmmword [esi + 0x48], xmm0
add dword [0x53cd90], 0x58
jmp 0x41765b
push esi
mov ecx, 0x53cd8c
call fcn.0041ae90
lea ecx, [ebp - 0xe0]
call fcn.004136b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x41769c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417692
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4176cb
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0041a880
call fcn.0041a880
call fcn.004c5929
call fcn.004c5929
int3