Function at 0x41d3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496010
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4b80c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0
push 0x400
mov byte [ebp - 0x41], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x800
call fcn.0040dc40
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 4], 0
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.0041f0c0
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [eax + 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41d43a
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x4aeadc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub eax, 0
je 0x41d4a5
sub eax, 2
je 0x41d5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegQueryValueEx_failed_with__i
push eax
call fcn.0041b6a0
add esp, 0xc
mov ecx, edi
push eax
call fcn.00407f20
lea ecx, [ebp - 0x28]
call fcn.004034e0
xor bl, bl
jmp 0x41d5f1
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
shr ecx, 1
cmp ecx, eax
ja 0x41d4c7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41d4d4
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.00408f50
sub esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x108]
push eax
call fcn.0041e650
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
jne 0x41d5e3
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.0041f220
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x41d591
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41d55b
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x41d561
lea edi, [edx + eax*2]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x41d591
movzx eax, word [esi]
push eax
call fcn.00475804
add esp, 4
test eax, eax
jne 0x41d57e
add esi, 2
cmp esi, edi
jne 0x41d565
jmp 0x41d58e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041ede0
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41d5cc
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d5c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d645
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
je 0x41d510
lea ecx, [ebp - 0x108]
call fcn.0041d650
mov bl, byte [ebp - 0x41]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41d627
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d61d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d645
push edx
push ecx
call fcn.0046b46b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b428
mov esp, ebp
pop ebp
ret
call fcn.00470244
int3