Function at 0x1002a020
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014044e
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x101811b8]
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 ebx, ecx
mov dword [ebp - 0x408], ebx
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jne 0x1002a063
jmp 0x1002a722
cmp eax, 2
je 0x1002a0c7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10117810
add esp, 0xc
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push str.InstallLocation
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall360se6
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1002a0ce
mov dword [ebx + 0x2c], 2
xor eax, eax
jmp 0x1002a722
call fcn.100039d0
mov ecx, eax
test ecx, ecx
je 0x1002a73e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x404]
test eax, 0xffff0000
jne 0x1002a110
movzx eax, ax
push eax
call fcn.10004000
jmp 0x1002a116
push eax
call fcn.100282c0
mov esi, dword [ebp - 0x404]
mov ebx, 0x10148870
push 0x21
sub ebx, esi
mov dword [ebp - 4], 1
push 0x10148870
mov edi, dword [esi - 0xc]
sar ebx, 1
mov dword [ebp - 0x410], edi
call fcn.1011d912
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x40c], edx
add esp, 8
cmp ecx, edi
jl 0x1002a748
add edi, edx
js 0x1002a752
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1002a18c
push edi
lea ecx, [ebp - 0x404]
call fcn.10004130
mov esi, dword [ebp - 0x404]
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x410]
lea ecx, [esi + ebx*2]
cmp ebx, eax
jbe 0x1002a19e
mov ecx, 0x10148870
push edx
push ecx
push edx
lea eax, [esi + eax*2]
push eax
call fcn.10003d10
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x1002a748
xor eax, eax
mov dword [esi - 0xc], edi
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a2c4
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002a2b0
push 0x35
push str.d:_buildlib_commonwnd_pluginconfig_fixedswitch.cpp
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001e980
mov byte [ebp - 4], 3
call fcn.10058c20
mov ebx, eax
lea ecx, [ebp - 0x3fc]
push 0x117
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10011dd0
mov edi, eax
push esi
push edi
mov byte [ebp - 4], 4
call fcn.1000dea0
push str._not_exist.
push edi
call fcn.10014590
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3fc]
call fcn.10014a50
lea ecx, [ebp - 0x248]
call fcn.10005a20
lea ecx, [ebp - 0x260]
call fcn.10005a20
mov eax, dword [ebp - 0x408]
xor edi, edi
mov dword [eax + 0x2c], 2
jmp 0x1002a701
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 1
push 0x40
push 1
push esi
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 5
call fcn.100266e0
xor eax, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x40c], eax
xor bl, bl
mov eax, dword [ebp - 0x4d8]
mov byte [ebp - 0x3fd], bl
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4cc], 6
jne 0x1002a60c
lea ecx, [ebp - 0x4d8]
push 0xa
add ecx, eax
call fcn.1002b8c0
movzx eax, al
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.10026200
add esp, 0xc
lea eax, [ebp - 0x230]
test bl, bl
mov ebx, dword [ebp - 0x21c]
je 0x1002a3c0
mov edi, dword [ebp - 0x230]
cmp ebx, 0x10
push 0xb
push str._state_:_1_
push 0
push dword [ebp - 0x220]
cmovae eax, edi
push eax
call fcn.10026110
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1002a66e
push 0xb
push str._state_:_0_
push 0
push dword [ebp - 0x220]
cmp ebx, 0x10
lea eax, [ebp - 0x230]
cmovae eax, edi
push eax
call fcn.10026110
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a55d
xor bl, bl
mov byte [ebp - 0x3fd], bl
jmp 0x1002a5f5
push 9
push str._name_:__
push 0
push dword [ebp - 0x220]
cmp ebx, 0x10
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10026110
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a5ef
cmp ebx, 0x10
lea edi, [ebp - 0x230]
lea eax, [ebp - 0x360]
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x364], eax
test edi, edi
jne 0x1002a41e
xor eax, eax
mov dword [ebp - 0x364], eax
jmp 0x1002a4e4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a423
sub ecx, edx
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
lea ebx, [ecx + 1]
push ebx
push eax
mov dword [ebp - 0x410], ebx
call fcn.10004f70
add esp, 0x10
push ebx
push dword [ebp - 0x364]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x1002a4d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002a4d6
mov ebx, dword [ebp - 0x410]
push 0
push 0
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.10004f70
add esp, 0x10
push edi
push dword [ebp - 0x364]
push ebx
push dword [ebp - 0x414]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1002a75c
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], 8
push 0
mov dword [ebp - 0x3e8], ecx
lea ecx, [ebp - 0x3e8]
push eax
call fcn.10028190
mov edx, dword [ebp - 0x3e8]
mov ecx, edx
mov byte [ebp - 4], 9
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a511
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.1001e980
mov eax, dword [ebp - 0x3e8]
lea ecx, [ebp - 0x3e4]
cmp eax, ecx
je 0x1002a540
push eax
call fcn.1011dc49
add esp, 4
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x1002a55d
push eax
call fcn.1011dc49
add esp, 4
mov eax, dword [ebp - 0x408]
xor ebx, ebx
mov ecx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002a5ef
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1002a58a
mov ecx, dword [edi]
push dword [edi + 0x10]
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push 0
push dword [ebp - 0x220]
push eax
call fcn.10026110
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1002a5df
mov eax, dword [ebp - 0x408]
inc ebx
add edi, 0x18
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x20]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1002a580
jmp 0x1002a5ef
lea edi, [ebx + 1]
mov byte [ebp - 0x3fd], 1
mov dword [ebp - 0x40c], edi
mov bl, byte [ebp - 0x3fd]
mov eax, dword [ebp - 0x4d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4cc], 6
je 0x1002a320
lea ecx, [ebp - 0x4c8]
call fcn.100290f0
test eax, eax
jne 0x1002a6dc
mov eax, dword [ebp - 0x4d8]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x4a0], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x4cc]
and eax, 0x17
mov dword [ebp + ecx - 0x4cc], eax
mov ecx, dword [ebp + ecx - 0x4c8]
and ecx, eax
je 0x1002a6dc
test cl, 4
je 0x1002a77b
mov esi, str.ios_base::badbit_set
jmp 0x1002a78b
mov eax, dword [ebp - 0x40c]
push eax
lea eax, [ebp - 0x414]
push str.ex1adb__d
push eax
call fcn.100364a0
add esp, 0xc
push 0
push 0
push 1
push dword [eax]
mov byte [ebp - 4], 7
push str.skip_pro
call fcn.10015280
mov ecx, eax
call fcn.10059af0
mov edx, dword [ebp - 0x414]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002a6c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x408]
mov edi, 1
mov dword [eax + 0x2c], 1
jmp 0x1002a6eb
mov eax, dword [ebp - 0x408]
xor edi, edi
mov dword [eax + 0x2c], 2
lea ecx, [ebp - 0x4d8]
call fcn.10027e00
lea ecx, [ebp - 0x230]
call fcn.10005a20
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a720
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.1010c1dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10003610
push 0x80070057
call fcn.10003610
push 0x80070057
call fcn.10003610
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.10004ff0
add esp, 0xc
call fcn.10005f30
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x418]
push 1
push eax
call fcn.100244d0
add esp, 8
lea ecx, [ebp - 0x244]
push eax
push esi
call fcn.10012590
push 0x10173918
lea eax, [ebp - 0x244]
push eax
call fcn.101168ee
int3