Function at 0x45b940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cb32
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], edi
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x70]
push 0x34
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
call fcn.004077d0
mov dword [ebp - 4], 1
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push edi
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041e780
add esp, 4
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x45ba12
mov eax, dword [eax]
push ecx
push eax
push 0x80000001
lea ecx, [ebp - 0x7c]
call fcn.00417a50
mov edi, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45ba3c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edi, edi
jne 0x45ba62
push esi
push str.InstallLocation
lea ecx, [ebp - 0x7c]
call fcn.00417d10
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x45ba78
push edi
call dword [0x53f9b0]
xor edi, edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
cmp dword [esi + 0x10], 0
je 0x45bc70
sub esp, 8
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x45ba91
mov eax, dword [esi]
jmp 0x45ba93
mov eax, esi
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.00412400
mov byte [ebp - 4], 4
cmp dword [ebx + 0x10], 0
push str..exe
jne 0x45bb5f
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.00444130
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
push ecx
mov edx, esp
jb 0x45bad5
mov ecx, dword [eax]
jmp 0x45bad7
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00412da0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x45bb00
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45bb19
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x45bb46
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x45bbff
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.00444130
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
push ecx
mov edx, esp
jb 0x45bb7a
mov ecx, dword [eax]
jmp 0x45bb7c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00412da0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x45bba5
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x45bbbe
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45bbeb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bc2b
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x45bc43
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407b20
jmp 0x45bc43
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45bc3c
mov eax, dword [esi]
jmp 0x45bc3e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45bc5c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
test edi, edi
je 0x45bc8d
push edi
call dword [0x53f9b0]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x74], 0
test ecx, ecx
je 0x45bca1
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x45bcba
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 0xc