Function at 0x10002e10
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.100ac780
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
mov dword [ebp - 0x1048], ecx
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe3c], ax
lea eax, [ebp - 0xe3a]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10098090
add esp, 0x48
lea eax, [ebp - 0x824]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10002ef1
mov eax, dword [0x101917d8]
mov dword [edi], eax
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10002f10
mov ecx, 8
mov esi, 0x101917dc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x824]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10002f31
lea ecx, [ebp - 0x824]
mov dword [edi], eax
add ecx, 0xfffffffe
jmp 0x10002f50
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002f50
mov eax, dword [0x101917fc]
mov dword [ecx], eax
mov eax, dword [0x10191800]
mov dword [ecx + 4], eax
mov eax, dword [0x10191804]
mov dword [ecx + 8], eax
mov eax, dword [0x10191808]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1019180c]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191810]
mov word [ecx + 0x14], ax
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002f96
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x10191818]
mov dword [ecx + 4], eax
mov ax, word [0x1019181c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x10199228
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
jmp 0x10002ff0
movzx eax, word [ebp + ecx - 0xc34]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002ff0
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003010
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003031
mov eax, dword [str.1.0.1.0701]
mov dword [ecx], eax
mov eax, dword [0x10191934]
mov dword [ecx + 4], eax
mov eax, dword [0x10191938]
mov dword [ecx + 8], eax
mov eax, dword [0x1019193c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10191940]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [ecx + 0x14], ax
add edi, 0xfffffffe
jmp 0x10003080
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003080
mov eax, dword [0x101917d8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10003180
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.10098090
add esp, 0xc
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x20c]
mov word [ebp + ecx - 0x61c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100030d0
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100030f1
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x61c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x10003180
cmp word [ebp - 0x414], 0
jne 0x10003126
xor ecx, ecx
jmp 0x1000313f
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003130
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x84]
call fcn.100048b0
cmp word [ebp - 0x20c], 0
je 0x10003912
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003170
jmp 0x1000392b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call fcn.10098090
add esp, 0xc
xor ecx, ecx
movzx eax, word [ecx + str.SOFTWARE_]
mov word [ebp + ecx - 0x1044], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100031a0
lea edi, [ebp - 0x1044]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100031c0
lea eax, [ebp - 0x104c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1044]
push eax
mov ecx, 8
mov esi, 0x101917dc
push reloc.OLEAUT32.dll_SysReAllocString
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100033b6
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0xe3c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x104c]
mov dword [ebp - 0x1050], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100033b6
xor ecx, ecx
jmp 0x10003240
movzx eax, word [ebp + ecx - 0xe3c]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003240
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003260
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003281
mov eax, dword [str.1.0.1.0701]
mov dword [ecx], eax
mov eax, dword [0x10191934]
mov dword [ecx + 4], eax
mov eax, dword [0x10191938]
mov dword [ecx + 8], eax
mov eax, dword [0x1019193c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10191940]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [ecx + 0x14], ax
add edi, 0xfffffffe
jmp 0x100032d0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100032d0
mov eax, dword [0x101917d8]
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x100033b6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.10098090
add esp, 0xc
xor ecx, ecx
jmp 0x10003320
movzx eax, word [ebp + ecx - 0x20c]
mov word [ebp + ecx - 0x61c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003320
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003341
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x61c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x100033b6
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x1048]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebx + 0x84]
call fcn.100044a0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x9c]
call fcn.100044a0
mov ecx, ebx
call fcn.10004180
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x104c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0xa2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100033e0
mov eax, dword [0x101917d8]
mov dword [edi], eax
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
lea esp, [esp]
mov dx, word [edi + 2]
add edi, 2
test dx, dx
jne 0x10003400
mov ecx, 8
mov esi, 0x101917dc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10003421
mov dword [edi], eax
xor edx, edx
jmp 0x10003440
movzx ecx, word [ebp + edx - 0xa2c]
mov word [ebp + edx - 0x414], cx
lea edx, [edx + 2]
test cx, cx
jne 0x10003440
xor edx, edx
lea ebx, [ebx]
movzx ecx, word [ebp + edx - 0x414]
mov word [ebp + edx - 0x20c], cx
lea edx, [edx + 2]
test cx, cx
jne 0x10003460
lea edx, [ebp - 0x20c]
add edx, 0xfffffffe
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x10003481
mov ecx, dword [str.1.0.1.0701]
mov dword [edx], ecx
mov ecx, dword [0x10191934]
mov dword [edx + 4], ecx
mov ecx, dword [0x10191938]
mov dword [edx + 8], ecx
mov ecx, dword [0x1019193c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10191940]
mov dword [edx + 0x10], ecx
mov cx, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [edx + 0x14], cx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x100034d0
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x100035c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.10098090
add esp, 0xc
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x20c]
mov word [ebp + ecx - 0x61c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003510
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003531
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x61c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x100035c0
cmp word [ebp - 0x414], 0
jne 0x10003566
xor ecx, ecx
jmp 0x1000357f
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003570
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x84]
call fcn.100048b0
cmp word [ebp - 0x20c], 0
je 0x10003912
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100035b0
jmp 0x1000392b
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
je 0x100036f0
xor ecx, ecx
jmp 0x100035e0
movzx eax, word [ebp + ecx - 0xc34]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x100035e0
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003600
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003621
mov eax, dword [str.1.0.1.0701]
mov dword [ecx], eax
mov eax, dword [0x10191934]
mov dword [ecx + 4], eax
mov eax, dword [0x10191938]
mov dword [ecx + 8], eax
mov eax, dword [0x1019193c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10191940]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [ecx + 0x14], ax
add edi, 0xfffffffe
jmp 0x10003670
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003670
cmp word [ebp - 0x414], 0
mov eax, dword [0x101917d8]
mov dword [edi], eax
jne 0x10003691
xor ecx, ecx
jmp 0x100036af
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100036a0
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x84]
call fcn.100048b0
cmp word [ebp - 0x20c], 0
je 0x10003912
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100036e0
jmp 0x1000392b
lea eax, [ebp - 0xe3c]
push eax
call ebx
xor ecx, ecx
test eax, eax
je 0x10003820
jmp 0x10003710
movzx eax, word [ebp + ecx - 0xe3c]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003710
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003730
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003751
mov eax, dword [str.1.0.1.0701]
mov dword [ecx], eax
mov eax, dword [0x10191934]
mov dword [ecx + 4], eax
mov eax, dword [0x10191938]
mov dword [ecx + 8], eax
mov eax, dword [0x1019193c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10191940]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [ecx + 0x14], ax
add edi, 0xfffffffe
jmp 0x100037a0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100037a0
cmp word [ebp - 0x414], 0
mov eax, dword [0x101917d8]
mov dword [edi], eax
jne 0x100037c1
xor ecx, ecx
jmp 0x100037df
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100037d0
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x84]
call fcn.100048b0
cmp word [ebp - 0x20c], 0
je 0x10003912
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003810
jmp 0x1000392b
movzx eax, word [ebp + ecx - 0xa2c]
mov word [ebp + ecx - 0x414], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003820
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x414]
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003840
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003861
mov eax, dword [str.1.0.1.0701]
mov dword [ecx], eax
mov eax, dword [0x10191934]
mov dword [ecx + 4], eax
mov eax, dword [0x10191938]
mov dword [ecx + 8], eax
mov eax, dword [0x1019193c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10191940]
mov dword [ecx + 0x10], eax
mov ax, word [0x10191944]
lea edi, [ebp - 0x20c]
mov word [ecx + 0x14], ax
add edi, 0xfffffffe
jmp 0x100038b0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100038b0
cmp word [ebp - 0x414], 0
mov eax, dword [0x101917d8]
mov dword [edi], eax
jne 0x100038d1
xor ecx, ecx
jmp 0x100038ef
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038e0
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x1048]
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x84]
call fcn.100048b0
cmp word [ebp - 0x20c], 0
jne 0x10003916
xor ecx, ecx
jmp 0x1000392f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003920
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x9c]
call fcn.100048b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009174c
mov esp, ebp
pop ebp
ret