Function at 0x40a300
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 0x5ab57e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x6370c0]
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 0x40a6ed
cmp dword [ecx + 0x14], 7
jbe 0x40a366
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.0040a0d0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x75], al
cmp ecx, 7
jbe 0x40a41b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a40e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6f2
push ecx
push edx
call fcn.0042dd9f
mov al, byte [ebp - 0x75]
add esp, 8
test al, al
je 0x40a65c
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00408360
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], 3
test edx, edx
je 0x40a48e
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 0x40a48e
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jae 0x40a476
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 0x40a48e
push 0x5c
mov byte [ebp - 0x84], 0
push dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b900
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 0x40a510
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a506
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6f7
push ecx
push edx
call fcn.0042dd9f
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 0x40a622
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x40a594
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 0x40a584
mov dword [ebp - 0x7c], esi
mov edx, esi
cmp eax, 7
jbe 0x40a568
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.00477010
mov eax, dword [ebp - 0x7c]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x40a594
push ecx
mov byte [ebp - 0x80], 0
mov ecx, esi
push dword [ebp - 0x80]
push edi
call fcn.004049f0
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40a5ce
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a5c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6fc
push ecx
push edx
call fcn.0042dd9f
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 0x40a61c
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a612
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6fc
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov byte [ebp - 0x75], 1
jmp 0x40a696
mov ecx, dword [ebp - 0x48]
cmp ecx, 7
jbe 0x40a65c
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a652
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6fc
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40a692
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a688
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a701
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov byte [ebp - 0x75], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 7
jbe 0x40a6cc
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a706
push ecx
push edx
call fcn.0042dd9f
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.0042db10
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401210
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
call fcn.0047a9c0
int3