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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101866a3
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x101d90a8]
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 - 0x410], ebx
mov eax, dword [ebx + 0x2c]
cmp eax, 1
jne 0x1002a973
jmp 0x1002b03a
cmp eax, 2
je 0x1002a9d7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1015bd90
add esp, 0xc
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
push str.InstallLocation
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall360se6
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1002a9de
mov dword [ebx + 0x2c], 2
xor eax, eax
jmp 0x1002b03a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x404]
call fcn.10004fe0
mov eax, dword [ebp - 0x404]
mov edi, 0x10194b48
sub edi, eax
mov dword [ebp - 4], 0
push 0x21
push 0x10194b48
mov ebx, dword [eax - 0xc]
sar edi, 1
call fcn.10161e42
mov ecx, SysReAllocString
mov dword [ebp - 0x40c], eax
sub ecx, eax
add esp, 8
cmp ecx, ebx
jl 0x1002b056
lea esi, [ebx + eax]
test esi, esi
js 0x1002b060
mov eax, dword [ebp - 0x404]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1002aa61
push esi
lea ecx, [ebp - 0x404]
call fcn.10003b60
mov eax, dword [ebp - 0x404]
lea edx, [eax + edi*2]
cmp edi, ebx
jbe 0x1002aa6d
mov edx, 0x10194b48
mov ecx, dword [ebp - 0x40c]
lea eax, [eax + ebx*2]
push ecx
push edx
push ecx
push eax
call fcn.10003740
mov eax, dword [ebp - 0x404]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x1002b056
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x404]
mov word [eax + esi*2], cx
push dword [ebp - 0x404]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x1002abc0
call fcn.1006bca0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002abac
push 0x5e
push str.d:jenkins.jenkinsworkspacelib_commonwnd_plugin_realeasewnd_pluginconfig_fixedswitch.cpp
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.1001f970
push 3
push 0x10193314
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001f970
mov byte [ebp - 4], 2
call fcn.1006bca0
mov edi, eax
lea ecx, [ebp - 0x3fc]
push 0xee
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100119f0
mov esi, eax
mov ecx, dword [ebp - 0x404]
mov edx, 0x101933c8
test ecx, ecx
mov byte [ebp - 4], 3
cmovne edx, ecx
push edx
push esi
call fcn.1000d8e0
push str._not_exist.
push esi
call fcn.100146d0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3fc]
call fcn.10014b90
lea ecx, [ebp - 0x248]
call fcn.10005450
lea ecx, [ebp - 0x260]
call fcn.10005450
or edi, 0xffffffff
mov eax, dword [ebp - 0x410]
xor esi, esi
mov dword [eax + 0x2c], 2
jmp 0x1002b016
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
push 1
push 0x40
push 1
push dword [ebp - 0x404]
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 4
call fcn.10027a80
xor eax, eax
mov byte [ebp - 4], 5
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 0x1002af05
lea ecx, [ebp - 0x4d8]
push 0xa
add ecx, eax
call fcn.1002c290
movzx eax, al
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.100275a0
add esp, 0xc
lea eax, [ebp - 0x230]
test bl, bl
mov ebx, dword [ebp - 0x230]
je 0x1002acbd
mov edi, dword [ebp - 0x21c]
cmp edi, 0x10
mov esi, dword [ebp - 0x220]
push 0xb
push str._state_:_1_
push 0
cmovae eax, ebx
push esi
push eax
call fcn.100274b0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1002af81
push 0xb
push str._state_:_0_
cmp edi, 0x10
lea eax, [ebp - 0x230]
push 0
cmovae eax, ebx
push esi
push eax
call fcn.100274b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002ae58
xor bl, bl
mov byte [ebp - 0x3fd], bl
jmp 0x1002aeeb
mov esi, dword [ebp - 0x21c]
cmp esi, 0x10
push 9
push str._name_:__
push 0
push dword [ebp - 0x220]
cmovae eax, ebx
push eax
call fcn.100274b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002aee5
cmp esi, 0x10
lea edi, [ebp - 0x230]
lea eax, [ebp - 0x360]
cmovae edi, ebx
mov dword [ebp - 0x364], eax
test edi, edi
jne 0x1002ad13
xor eax, eax
mov dword [ebp - 0x364], eax
jmp 0x1002add1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ad18
sub ecx, edx
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
lea esi, [ecx + 1]
push esi
push eax
mov dword [ebp - 0x408], esi
call fcn.100049a0
add esp, 0x10
push esi
push dword [ebp - 0x364]
push esi
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 0x1002adc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002adc3
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push esi
push edi
push 0
push 0xfde9
call ebx
mov esi, eax
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
push esi
push eax
call fcn.100049a0
add esp, 0x10
push esi
push dword [ebp - 0x364]
push dword [ebp - 0x408]
push edi
push 0
push 0xfde9
call ebx
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1002b06a
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x3e4]
mov byte [ebp - 4], 7
push 0
mov dword [ebp - 0x3e8], ecx
lea ecx, [ebp - 0x3e8]
push eax
call fcn.10029010
mov edx, dword [ebp - 0x3e8]
mov ecx, edx
mov byte [ebp - 4], 8
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ae00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.1001f970
mov eax, dword [ebp - 0x3e8]
lea ecx, [ebp - 0x3e4]
cmp eax, ecx
je 0x1002ae2f
push eax
call fcn.1016217a
add esp, 4
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 5
cmp eax, ecx
je 0x1002ae4c
push eax
call fcn.1016217a
add esp, 4
mov ebx, dword [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x408], 0
mov ecx, dword [eax + 0x24]
mov esi, dword [eax + 0x20]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002aee5
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1002ae8d
mov ecx, dword [esi]
push dword [esi + 0x10]
cmp edi, 0x10
lea eax, [ebp - 0x230]
push ecx
push 0
push dword [ebp - 0x220]
cmovae eax, ebx
push eax
call fcn.100274b0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1002af67
mov eax, dword [ebp - 0x410]
add esi, 0x18
inc dword [ebp - 0x408]
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 dword [ebp - 0x408], eax
jb 0x1002ae83
mov bl, byte [ebp - 0x3fd]
mov eax, dword [ebp - 0x4d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4cc], 6
je 0x1002ac21
or edi, 0xffffffff
lea ecx, [ebp - 0x4c8]
call fcn.10029a50
test eax, eax
jne 0x1002aff1
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 0x1002aff1
test cl, 4
je 0x1002b089
mov esi, str.ios_base::badbit_set
jmp 0x1002b099
mov esi, dword [ebp - 0x408]
mov bl, 1
inc esi
mov byte [ebp - 0x3fd], bl
mov dword [ebp - 0x40c], esi
jmp 0x1002aeeb
mov eax, dword [ebp - 0x40c]
push eax
lea eax, [ebp - 0x40c]
push str.ex1adb__d
push eax
call fcn.100374b0
add esp, 0xc
push 0
push 0
push 1
push dword [eax]
mov byte [ebp - 4], 6
push str.skip_pro
call fcn.100153f0
mov ecx, eax
call fcn.1006d600
mov edx, dword [ebp - 0x40c]
or edi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002afdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x410]
mov esi, 1
mov dword [eax + 0x2c], 1
jmp 0x1002b000
mov eax, dword [ebp - 0x410]
xor esi, esi
mov dword [eax + 0x2c], 2
lea ecx, [ebp - 0x4d8]
call fcn.10028c80
lea ecx, [ebp - 0x230]
call fcn.10005450
mov eax, dword [ebp - 0x404]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1002b038
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.1013724c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10003040
push 0x80070057
call fcn.10003040
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.10004a20
add esp, 0xc
call fcn.10005960
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x420]
push 1
push eax
call fcn.10025810
add esp, 8
lea ecx, [ebp - 0x244]
push eax
push esi
call fcn.100124e0
push 0x101c3fbc
lea eax, [ebp - 0x244]
push eax
call fcn.1015ae78
int3