Function at 0x101c2c9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1030d29
call fcn.01010a18
sub esp, 0x23c
mov eax, dword [0x1037024]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x10], eax
call fcn.01012ec6
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
mov edi, 0x200
push edi
mov ecx, esi
call fcn.01010d74
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x101c5f1
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101c32c
push ebx
push 0x2000000
push 3
push ebx
sub eax, edx
push 5
mov dword [ebp - 0x228], eax
push 0x80000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x101c5f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x210], 0x5c
jne 0x101c37e
cmp byte [ebp - 0x20f], 0x5c
je 0x101c5f1
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0xf003f
push ebx
push 0x10039d0
push ebx
push dword [0x1037848]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x101c5f1
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [0x103784c]
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
jne 0x101c4e3
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101c3ed
mov ecx, dword [ebp - 0x214]
sub eax, edx
lea eax, [eax + ecx + 4]
push eax
call fcn.010106bd
mov esi, eax
cmp esi, ebx
pop ecx
je 0x101c4d2
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push ebx
push dword [0x103784c]
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x101c4fc
mov eax, dword [ebp - 0x214]
mov byte [eax + esi], bl
mov eax, dword [ebp - 0x214]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp - 0x214]
mov byte [eax + esi + 2], bl
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
mov byte [eax + esi + 3], bl
xor edi, edi
call fcn.01010e7b
mov byte [ebp - 4], 1
cmp dword [ebp - 0x214], 1
jbe 0x101c4c2
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x218]
call fcn.010110d8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0101bdef
lea ecx, [ebp - 0x218]
call fcn.01010d69
lea eax, [edi + esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101c4aa
sub eax, ecx
lea edi, [edi + eax + 1]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x214]
jb 0x101c478
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x218]
call fcn.01010f73
jmp 0x101c4fc
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101c5f1
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101c4e3
sub eax, edx
add eax, 2
push eax
call fcn.010106bd
mov esi, eax
cmp esi, ebx
pop ecx
je 0x101c4d2
mov eax, dword [ebp - 0x248]
push 0x10012ac
lea ecx, [ebp - 0x220]
mov edi, esi
mov dword [ebp - 0x218], eax
call fcn.01010ff5
mov byte [ebp - 4], 2
jmp 0x101c579
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
add eax, 8
mov dword [ebp - 0x218], ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0101107e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x220]
call fcn.01010db0
test eax, eax
je 0x101c579
lea ecx, [ebp - 0x220]
call fcn.01010d74
mov edx, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x101c560
lea ecx, [ebp - 0x220]
call fcn.01010d69
lea edi, [edi + eax + 1]
cmp dword [ebp - 0x218], ebx
jne 0x101c520
lea eax, [ebp - 0x210]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x101c58d
add edi, dword [ebp - 0x228]
mov byte [edi], bl
inc edi
sub edi, esi
inc edi
push edi
push esi
push 7
push ebx
push dword [0x103784c]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
push dword [ebp - 0x21c]
je 0x101c5da
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.01010f73
jmp 0x101c5f1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.01010f73
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.0100ebbe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.01010773
leave
ret 4