Function at 0x10130a1
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, 0x1002184
je 0x101310e
test byte [0x102407c], 0x10
je 0x1013104
push esi
push 0xb
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
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 0x10021c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1013178
test byte [0x102407c], 0x10
je 0x10133d7
push esi
push 0xc
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
jmp 0x10133d7
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x1002194
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x101330a
test eax, eax
jne 0x10131ee
cmp dword [ebp - 0x224], 2
jne 0x10131cd
cmp dword [ebp - 0x220], 1
je 0x101330a
cmp dword [ebp - 0x220], 1
je 0x1013215
test byte [0x102407c], 0x10
je 0x10133d7
push dword [ebp - 0x220]
push esi
push 0x12
jmp 0x10131ff
test byte [0x102407c], 0x10
je 0x10133d7
push eax
push esi
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x10133d7
lea eax, [ebp - 0x228]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01012ca6
test eax, eax
jge 0x1013249
test byte [0x102407c], 0x10
je 0x10133d7
push eax
push 0x1002184
push 0x13
jmp 0x10131ff
mov eax, dword [ebp - 0x228]
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x1013273
test byte [0x102407c], 0x10
je 0x10133d7
push 0x1002184
push 0x14
jmp 0x1013162
lea eax, [ebp - 0x210]
push 0x1002208
push eax
call fcn.0101aa50
test eax, eax
pop ecx
pop ecx
je 0x10132ba
test byte [0x102407c], 0x10
je 0x10133d7
push dword [ebp - 0x218]
push 0x1002184
push 0x15
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
jmp 0x10133d7
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x218]
call fcn.01012c5d
test eax, eax
jge 0x10132eb
test byte [0x102407c], 0x10
je 0x10133d7
push eax
push 0x1002184
push 0x16
jmp 0x10131ff
test byte [0x102407c], 0x10
je 0x10133d0
push dword [ebp - 0x218]
push 0x1002184
push 0x17
jmp 0x10133bf
test byte [0x102407c], 0x10
je 0x1013327
push esi
push 0xd
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
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 0x1013380
test byte [0x102407c], 0x10
je 0x101336f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002184
push 0xe
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
mov edi, dword [ebp - 0x218]
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10133d7
cmp eax, esi
jbe 0x10133a9
test byte [0x102407c], 0x10
je 0x101336f
push eax
push esi
push 0x1002184
push 0xf
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003433
jmp 0x101336f
test byte [0x102407c], 0x10
je 0x10133d0
push dword [ebp - 0x218]
push 0x1002184
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003351
mov byte [ebp - 0x211], 1
cmp dword [ebp - 0x21c], 0
je 0x10133ec
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp byte [ebp - 0x211], al
je 0x10133f9
inc eax
jmp 0x101340b
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.01019860
leave
ret