Function at 0x41e500
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [0x45d530]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push edx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41e5d0
mov edi, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x41e603
add esi, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41e5b1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp edi, ebx
je 0x41e5bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e5ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x41e7cb
nop
mov dword [ebp - 0x24], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x41e63b
mov ecx, 0x105
lea eax, [ebp - 0x10]
call fcn.00403660
mov esi, dword [ebp - 0x10]
mov eax, 0x105
cmp dword [esi - 8], eax
jl 0x41e80c
lea edx, [ebp - 0x34]
push edx
push ebx
push ebx
push ebx
mov dword [esi - 0xc], eax
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
mov word [esi + 0x20a], cx
mov ecx, dword [ebp - 0x18]
push esi
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e671
sub eax, edx
sar eax, 1
cmp eax, ebx
jl 0x41e80c
cmp eax, dword [esi - 8]
jg 0x41e80c
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, 0x451824
call fcn.00406e80
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
push ecx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.0040bd10
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x41e716
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x41e706
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x41e706
call fcn.00403230
mov edi, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x41e6fe
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x41e716
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.004036d0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e75c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
mov edx, dword [0x45d530]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x41e7a4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
push eax
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], ebx
call fcn.00419a30
mov byte [ebp - 4], 1
cmp ebx, edi
je 0x41e7b6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
inc eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x20]
jb 0x41e610
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x41e7f5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036b0
int3