Function at 0x41119d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4545ec
call fcn.004324bc
sub esp, 0x13c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x474988
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00421cc6
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 1
mov edi, 0xf003f
jne 0x411263
cmp dword [ebp + 0x10], ebx
jne 0x41135c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0xff
push eax
push edi
push ebx
mov dword [ebp + 0x10], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], ebx
je 0x41135c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00448287
xor eax, eax
jmp 0x4113f5
cmp eax, 2
jne 0x41135c
cmp dword [ebp + 0x10], ebx
je 0x41135c
lea ecx, [ebp - 0x40]
call fcn.00445734
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
call fcn.00411b52
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x38], ebx
mov dword [ebp + 0x10], ebx
jle 0x411351
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
call fcn.00414b6a
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x14]
push eax
call fcn.0040f605
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp dword [eax - 8], ebx
je 0x411333
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x18], esp
push 1
lea ecx, [ebp - 0x40]
push dword [ebp + 0x10]
call fcn.00414b6a
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.00447ffc
push edi
mov byte [ebp - 4], 2
call fcn.0040bffd
add esp, 0x10
push dword [ebp + 8]
call fcn.0041119d
add esp, 0xc
mov edi, 0xf003f
jmp 0x411336
inc dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00448287
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x38]
jl 0x4112b2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00445767
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push edi
push ebx
push ebx
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 0x10], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 0x10]
push eax
call fcn.0040b60c
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0044866b
push eax
push dword [ebp + 8]
call esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00448287
push ebx
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00447ffc
lea eax, [ebp + 8]
push eax
call fcn.0040be4f
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0044866b
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [ebp + 8]
neg esi
sbb esi, esi
mov byte [ebp - 4], bl
inc esi
call fcn.00448287
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00448287
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret