Function at 0x40a2f0
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 0x5ab49e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x6360c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edx
mov esi, dword [ebx + 8]
mov eax, bind
mov dword [ebp - 0x7c], 0
mov edi, dword [ecx + 0x10]
sub eax, edi
cmp eax, 0x34
jb 0x40a6dd
cmp dword [ecx + 0x14], 7
jbe 0x40a356
mov ecx, dword [ecx]
push edi
push ecx
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
call fcn.00401b30
mov dword [ebp - 0x7c], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0xf
push str.InstallLocation
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00401950
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
call fcn.0040a0c0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x75], al
cmp ecx, 7
jbe 0x40a40b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a3fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6e2
push ecx
push edx
call fcn.0042dc6f
mov al, byte [ebp - 0x75]
add esp, 8
test al, al
je 0x40a64c
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00408350
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], 3
test edx, edx
je 0x40a47e
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov edi, 0x5c
cmova ecx, dword [ebp - 0x44]
cmp di, word [ecx + eax*2 - 2]
je 0x40a47e
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jae 0x40a466
lea eax, [edx + 1]
cmp ecx, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov dword [eax + edx*2], edi
jmp 0x40a47e
push 0x5c
mov byte [ebp - 0x84], 0
push dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b8f0
push dword [ebp - 0x80]
lea ecx, [ebp - 0x2c]
call fcn.00401ac0
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40a500
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6e7
push ecx
push edx
call fcn.0042dc6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x48], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x18], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a612
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x40a584
cmp dword [ebp - 0x30], 7
mov ecx, eax
mov edi, dword [ebp - 0x34]
cmova ecx, dword [ebp - 0x44]
mov eax, dword [esi + 0x14]
cmp edi, eax
ja 0x40a574
mov dword [ebp - 0x7c], esi
mov edx, esi
cmp eax, 7
jbe 0x40a558
mov edx, dword [esi]
mov dword [ebp - 0x7c], edx
lea eax, [edi + edi]
mov dword [esi + 0x10], edi
push eax
push ecx
push edx
call fcn.00476ec0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x40a584
push ecx
mov byte [ebp - 0x80], 0
mov ecx, esi
push dword [ebp - 0x80]
push edi
call fcn.00404b50
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40a5be
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a5b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6ec
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 7
jbe 0x40a60c
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a602
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6ec
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov byte [ebp - 0x75], 1
jmp 0x40a686
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40a64c
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a642
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6ec
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40a682
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a678
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6f1
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov byte [ebp - 0x75], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 7
jbe 0x40a6bc
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6f6
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov al, byte [ebp - 0x75]
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.0042d9e0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401210
call fcn.0047a870
call fcn.0047a870
call fcn.0047a870
call fcn.0047a870
call fcn.0047a870
int3