Function at 0x1001c680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
lea ecx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x11c]
mov eax, dword [esi + 0x80]
push eax
push 0x10042ad4
push 0x10042b04
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c6d7
xor eax, eax
pop esi
add esp, 0x114
ret
push ebx
push ebp
push edi
mov edi, dword [esi + 0x8c]
mov ecx, 0x41
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x88]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
mov edi, 0x104
push eax
mov dword [esp + 0x28], edi
call dword [0x1004c1b0]
mov edx, dword [esi + 0x8c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x10042b0c
push ecx
mov dword [esp + 0x28], edi
call ebx
or ebp, eax
jne 0x1001c75d
cmp dword [esp + 0x18], 1
jne 0x1001c75d
mov edx, dword [esi + 0x8c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x104
mov byte [ecx + edx + 1], al
mov eax, dword [esi + 0x94]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
push eax
push 0
push 0
push 0x10042b14
push ecx
call ebx
mov ecx, dword [esp + 0x14]
or ebp, eax
mov eax, dword [esi + 0x90]
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x10042b20
push ecx
mov dword [esp + 0x28], edi
call ebx
mov edx, dword [esi + 0x80]
or ebp, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x103
sub eax, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx + 1]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push 0x10042b28
push eax
call ebx
lea ecx, [esp + 0x10]
lea edx, [esi + 0x10]
push ecx
push edx
or ebp, eax
mov eax, dword [esp + 0x1c]
push 0
push 0
mov edi, 4
push 0x10042b30
push eax
mov dword [esp + 0x28], edi
call ebx
mov edx, dword [esi + 0x98]
lea ecx, [esp + 0x10]
push ecx
push edx
or ebp, eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0x10042b3c
push eax
mov dword [esp + 0x28], 0x104
call ebx
lea ecx, [esp + 0x10]
lea edx, [esi + 0x60]
push ecx
push edx
mov dword [esp + 0x18], 8
push 0
mov eax, dword [esp + 0x20]
push 0
push 0x10042b48
push eax
call ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
push 0x10042b54
push eax
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x1001c877
mov cx, word [esp + 0x1c]
mov word [esi], cx
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push edx
push eax
push 0
push 0
push 0x10042b58
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x1001c8b1
mov dword [esi + 0x1c], 0x80040000
xor eax, eax
pop edi
test ebp, ebp
pop ebp
pop ebx
sete al
pop esi
add esp, 0x114
ret