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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
mov ebx, ecx
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0xe3c]
push 0
push eax
call fcn.100141e0
add esp, 0x48
lea eax, [ebp - 0x61c]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004c60
mov eax, dword [0x1002b448]
mov dword [edi], eax
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10004c80
mov ecx, 7
mov esi, str.ButterflyImage
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10004ca3
mov dword [edi], eax
lea edi, [ebp - 0x61c]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004cc0
mov ecx, 7
mov esi, str.ButterflyImage
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x61c]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10004ce3
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x1002b490]
mov dword [ecx + 4], eax
mov ax, word [0x1002b494]
mov word [ecx + 8], ax
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x1002b420
push str.InstallPath
push str.MainConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10004d32
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10004d50
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100049d0
test eax, eax
je 0x10004dc0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004d83
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10005a50
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004db0
jmp 0x1000519b
push 0x1f4
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.100141e0
movups xmm0, xmmword [str.SOFTWARE_]
mov eax, dword [0x1002b5a4]
lea edi, [ebp - 0xc34]
add esp, 0xc
mov dword [ebp - 0xc24], eax
movups xmmword [ebp - 0xc34], xmm0
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10004e00
mov ecx, 7
lea eax, [ebp - 0xe40]
mov esi, str.ButterflyImage
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xc34]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004f20
lea eax, [ebp - 0xe44]
mov dword [ebp - 0xe44], 0x208
push eax
lea eax, [ebp - 0xe3c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004f20
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0xe3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10004e80
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10004ea0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100049d0
test eax, eax
je 0x10004f20
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004ee0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10005a50
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004f10
jmp 0x1000519b
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0x824]
push eax
push 0
call fcn.1000a260
lea edi, [ebp - 0x824]
add esp, 0x10
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004f50
mov eax, dword [0x1002b448]
lea edx, [ebp - 0x824]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x10004f70
mov ecx, dword [str.ButflyImage]
lea edi, [ebp - 0x824]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x1002b5ac]
mov dword [edx + 4], ecx
mov ecx, dword [0x1002b5b0]
mov dword [edx + 8], ecx
mov ecx, dword [0x1002b5b4]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x1002b5b8]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x1002b5bc]
mov dword [edx + 0x14], ecx
nop word [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10004fc0
mov dword [edi], eax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x824]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10004fd0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10004ff0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100049d0
test eax, eax
je 0x10005060
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005023
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10005a50
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005050
jmp 0x1000519b
lea ecx, [ebp - 0xa2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005070
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10005120
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005120
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0xa2c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x100050a0
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x100050c0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100050e1
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10005a50
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005110
jmp 0x1000519b
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x824]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10005122
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10005140
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005161
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10005a50
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005190
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x70]
call fcn.10005a50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011b54
mov esp, ebp
pop ebp
ret