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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x102416c]
push ebx
push esi
xor edx, edx
mov ebx, ecx
push edi
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebx], 0xffffffff
mov ecx, 0x82
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], dx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x21c], edx
mov byte [ebp - 0x211], al
mov esi, 0x10021bc
je 0x1013258
test byte [0x102407c], 0x10
je 0x101324e
push esi
push 0xb
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
or dword [ebx], 0xffffffff
xor eax, eax
lea edi, [ebx + 0x10]
mov byte [ebx + 4], 0
mov ecx, 0x82
mov dword [ebp - 0x218], edi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push edx
push 0x2001f
push edx
push edx
push edx
push 0x10021f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10132c2
test byte [0x102407c], 0x10
je 0x1013521
push esi
push 0xc
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
jmp 0x1013521
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x10021cc
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1013454
test eax, eax
jne 0x1013338
cmp dword [ebp - 0x224], 2
jne 0x1013317
cmp dword [ebp - 0x220], 1
je 0x1013454
cmp dword [ebp - 0x220], 1
je 0x101335f
test byte [0x102407c], 0x10
je 0x1013521
push dword [ebp - 0x220]
push esi
push 0x12
jmp 0x1013349
test byte [0x102407c], 0x10
je 0x1013521
push eax
push esi
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
jmp 0x1013521
lea eax, [ebp - 0x228]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01012df0
test eax, eax
jge 0x1013393
test byte [0x102407c], 0x10
je 0x1013521
push eax
push 0x10021bc
push 0x13
jmp 0x1013349
mov eax, dword [ebp - 0x228]
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x10133bd
test byte [0x102407c], 0x10
je 0x1013521
push 0x10021bc
push 0x14
jmp 0x10132ac
lea eax, [ebp - 0x210]
push 0x1002240
push eax
call fcn.0101ac40
test eax, eax
pop ecx
pop ecx
je 0x1013404
test byte [0x102407c], 0x10
je 0x1013521
push dword [ebp - 0x218]
push 0x10021bc
push 0x15
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
jmp 0x1013521
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x218]
call fcn.01012da7
test eax, eax
jge 0x1013435
test byte [0x102407c], 0x10
je 0x1013521
push eax
push 0x10021bc
push 0x16
jmp 0x1013349
test byte [0x102407c], 0x10
je 0x101351a
push dword [ebp - 0x218]
push 0x10021bc
push 0x17
jmp 0x1013509
test byte [0x102407c], 0x10
je 0x1013471
push esi
push 0xd
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100335b
push dword [ebp - 0x218]
mov esi, 0x104
push esi
mov byte [ebx + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov dword [ebp - 0x224], eax
jne 0x10134ca
test byte [0x102407c], 0x10
je 0x10134b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10021bc
push 0xe
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003493
mov edi, dword [ebp - 0x218]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x1013521
cmp eax, esi
jbe 0x10134f3
test byte [0x102407c], 0x10
je 0x10134b9
push eax
push esi
push 0x10021bc
push 0xf
push dword [0x1024074]
push dword [0x1024070]
call fcn.010033e2
jmp 0x10134b9
test byte [0x102407c], 0x10
je 0x101351a
push dword [ebp - 0x218]
push 0x10021bc
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003381
mov byte [ebp - 0x211], 1
cmp dword [ebp - 0x21c], 0
je 0x1013536
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp byte [ebp - 0x211], al
je 0x1013543
inc eax
jmp 0x1013555
or dword [ebx], 0xffffffff
mov edi, dword [ebp - 0x218]
mov ecx, 0x82
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01019a47
leave
ret