Function at 0xb10a90
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x124
mov word [0xb168fa], 0x40
mov dword [esp + 0x14], 0x18
lea eax, [esp + 0x20]
push ebx
mov dword [esp + 0x14], 0
push esi
push edi
push ebp
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0xb10ad7
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov edi, 0xb14484
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x30]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x3e80
and ecx, 3
push 0x42
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call edi
mov dword [esp + 0x10], eax
test eax, eax
jne 0xb10b39
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
push 0x3e80
push 0x42
call esi
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0xb10b7f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
lea eax, [esp + 0x30]
push 0
push eax
mov ebp, dword [sym.imp.KERNEL32.dll__lopen]
call ebp
cmp eax, 0xffffffff
mov ebp, eax
jne 0xb10d0b
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [esp + 0x14], 0x3e80
push eax
push ebx
push 0xb14318
push 0x80000000
call esi
test eax, eax
je 0xb10c5e
xor eax, eax
mov ax, word [0xb16b3c]
push eax
call fcn.00b13250
add esp, 4
call fcn.00b13260
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [0xb16b3a]
push eax
call fcn.00b13250
add esp, 4
call fcn.00b13260
mov dword [esp + 0x18], eax
shl eax, 0x10
or eax, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
mov dword [0xb16c0c], eax
xor eax, eax
mov ax, word [0xb16b36]
push eax
call fcn.00b13250
add esp, 4
call fcn.00b13260
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [0xb16b38]
push eax
call fcn.00b13250
add esp, 4
call fcn.00b13260
mov dword [esp + 0x18], eax
push 0xa
shl eax, 0x10
push ebx
or eax, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
add dword [0xb16c0c], eax
mov ecx, dword [0xb16c0c]
push ecx
call fcn.00b131c0
add esp, 0xc
mov edx, 0xb1447c
mov ecx, ebx
call fcn.00b0f8f0
mov ecx, dword [esp + 0x10]
mov edx, dword [0xb16b24]
mov dword [esp + 0x14], 0x3e80
mov dword [0xb16c0c], eax
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push 0x80000000
call esi
test eax, eax
je 0xb10cea
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor dword [ecx + 0x15ff5000], 0xffffff88
xor dword [ecx + 0x24448b00], 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0xb1119f
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 4
mov esi, eax
jne 0xb10de5
cmp dword [esp + 0x20], 0
jne 0xb10de5
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [esp + 0x20], 0x14
mov esi, eax
jne 0xb10ddd
push 4
push 0xb16c0c
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
add esi, eax
push 8
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
add eax, esi
cmp eax, 0x10
je 0xb10dd6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov esi, 4
jmp 0xb10e15
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
push 2
push 0
mov dword [0xb16c0c], eax
mov dword [esp + 0x28], 0xa
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov dword [esp + 0x24], eax
cmp eax, 4
jb 0xb10e15
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 4
je 0xb10eac
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [esp + 0x14], 0x3e80
push eax
push ebx
push 0xb14318
push 0x80000000
call esi
test eax, eax
je 0xb10e99
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov edx, 0xb14474
mov ecx, ebx
call fcn.00b0f8f0
mov dword [0xb16c0c], eax
jmp 0xb10eb2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov edx, dword [0xb16b24]
mov dword [esp + 0x18], 0x3e80
push ecx
push edx
push 0x80000000
call esi
push 0x10
test eax, eax
push ebx
push ebp
je 0xb10fed
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x20]
sub ecx, 0x14
cmp ecx, 1
sbb ecx, ecx
and ecx, 0x14
add ecx, 0x14
cmp eax, 0x10
mov dword [esp + 0x28], ecx
jne 0xb10f48
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jg 0xb10f48
mov eax, dword [ebx + 0xc]
mov ecx, 0xc
mov esi, dword [0xb16b24]
mov edi, ebx
mov dword [esp + 0x18], eax
repe cmpsb byte [esi], byte es:[edi]
je 0xb10fa6
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
push 0x10
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x18]
add ecx, eax
add dword [esp + 0x28], ecx
cmp eax, 0x10
je 0xb10eff
or byte [0xb168fa], 8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
inc eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
or byte [0xb168fa], 2
jmp 0xb111a6
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x20]
sub ecx, 0x14
cmp ecx, 1
sbb ecx, ecx
and ecx, 0x14
add ecx, 0x14
cmp eax, 0x10
mov dword [esp + 0x28], ecx
jne 0xb1116d
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jg 0xb1116d
mov eax, dword [ebx + 0xc]
mov ecx, 0xc
mov esi, dword [0xb16b24]
mov edi, ebx
mov dword [esp + 0x18], eax
repe cmpsb byte [esi], byte es:[edi]
je 0xb11060
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
push 0x10
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x18]
add ecx, eax
add dword [esp + 0x28], ecx
cmp eax, 0x10
je 0xb11012
jmp 0xb1116d
or byte [0xb168fa], 1
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0xb110cb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov esi, dword [esp + 0x18]
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
jae 0xb11133
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, eax
mov edi, ebx
shr ecx, 2
repe cmpsd dword [esi], dword es:[edi]
jne 0xb1116d
mov ecx, eax
and ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0xb1116d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
test ebx, ebx
je 0xb111a6
test byte [0xb168fa], 1
jne 0xb111a6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or byte [0xb168fa], 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
dec dword [esp + 0x14]
push ecx
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.00b0f600
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
mov edi, 0xb16900
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x1c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x1c]
mov esi, 0xb16990
add eax, 0x82
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0xb11254
mov eax, dword [esi]
test eax, eax
je 0xb1123e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x2c]
call fcn.00b0f960
lea ecx, [esp + 0x2c]
mov dword [esi], eax
call fcn.00b0f2e0
jmp 0xb1125e
mov dword [esi], 0
inc dword [esp + 0x2c]
add esi, 4
cmp esi, 0xb169e0
jb 0xb11211
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [0xb168fa], 1
je 0xb11423
test ebx, ebx
je 0xb11423
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.00b0f600
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx + 0x5d]
mov cx, word [0xb1695d]
cmp ax, cx
jb 0xb112ea
mov ax, cx
mov cx, word [0xb1695f]
mov word [0xb1695d], ax
mov eax, dword [esp + 0x1c]
mov ax, word [eax + 0x5f]
cmp ax, cx
jb 0xb11307
mov ax, cx
mov word [0xb1695f], ax
xor edx, edx
mov dx, word [0xb16963]
lea eax, [edx*2 - 0xbc34]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*4]
xor ecx, ecx
mov cx, word [0xb16961]
lea ebx, [ecx + ecx*8]
lea ecx, [ecx + ebx*8]
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x1c]
add edx, eax
add ecx, 0x61
xor eax, eax
xor esi, esi
mov ax, word [0xb16967]
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov si, word [eax + 0x63]
add esi, esi
lea eax, [esi + esi*2]
lea esi, [eax + eax*4]
xor eax, eax
mov ax, word [ecx]
lea ebx, [eax + eax*8 - 0x459c]
sub eax, 0x7bc
lea eax, [eax + ebx*8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
add esi, edx
xor edx, edx
mov dx, word [eax + 0x67]
add esi, edx
mov dword [esp + 0x18], esi
cmp dword [esp + 0x14], esi
jle 0xb113a8
mov edx, 0xb16961
mov eax, dword [ecx]
mov dword [edx], eax
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0xb16976]
mov eax, dword [eax + 0x76]
cmp eax, ecx
jb 0xb113bb
mov eax, ecx
mov ecx, dword [0xb1697a]
mov dword [0xb16976], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x7a]
cmp eax, ecx
jb 0xb113d3
mov eax, ecx
mov dword [0xb1697a], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x71]
lea ecx, [eax*4]
lea edx, [ecx + ecx*2]
mov ecx, dword [0xb16bf8]
lea ebx, [edx + edx*4]
cmp word [ebx + ecx + 0x28], 0
jne 0xb113ff
mov dword [0xb16971], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x124
ret