Function at 0x45ad26
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403030
push 0x45ea34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x680
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x678], esi
call fcn.00427384
mov dword [ebp - 0x260], eax
mov al, byte [0x460a68]
mov byte [ebp - 0x154], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
push edi
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0045710c
lea eax, [ebp - 0x154]
push eax
push 0x411358
push 0x40aa14
push edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x258]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45b19c
xor edi, edi
mov dword [ebp - 0x378], edi
mov dword [ebp - 0x380], edi
lea eax, [ebp - 0x378]
push eax
push edi
lea eax, [ebp - 0x380]
push eax
push edi
push 0x411350
push dword [ebp - 0x368]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
cmp dword [ebp - 0x378], edi
jbe 0x45b175
mov dword [ebp - 4], edi
push dword [ebp - 0x378]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
mov dword [ebp - 0x5f0], edi
mov dword [ebp - 0x37c], edi
or dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x45ae4a
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b1c8
lea eax, [ebp - 0x378]
push eax
push edi
lea eax, [ebp - 0x380]
push eax
push 0
push 0x411350
push dword [ebp - 0x368]
call ebx
test eax, eax
jne 0x45b167
cmp dword [ebp - 0x380], 3
jne 0x45b167
mov eax, dword [edi + 8]
mov dword [ebp - 0x384], eax
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x388], edi
test edi, edi
jbe 0x45b167
mov eax, dword [ebp - 0x5f0]
lea ebx, [eax + 0x14]
lea ecx, [esi + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.0045b518
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x4a4], edi
mov edx, dword [ebp - 0x388]
cmp dword [ebp - 0x4a4], edx
jae 0x45b150
mov eax, dword [ebx]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xfffffffb
jne 0x45aef3
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4b0], eax
mov ax, word [ebx + 8]
mov dword [ebp - 0x5c0], eax
mov ax, word [ebx + 0xa]
mov dword [ebp - 0x5c4], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x5bc], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x5cc], ecx
mov cx, word [ebx + 0x14]
mov dword [ebp - 0x4ac], ecx
movzx eax, ax
mov ecx, eax
and ecx, 2
mov dword [ebp - 0x5c8], ecx
and eax, 4
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4b0], edx
jae 0x45b127
cmp dword [ebp - 0x260], edi
je 0x45b043
lea ecx, [ebx + 0x16]
mov dword [ebp - 0x5d8], ecx
cmp eax, edi
je 0x45af7f
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
inc eax
inc eax
mov dword [ebp - 0x5e0], eax
cmp eax, 0x10
jle 0x45af9a
push 0x10
pop eax
mov dword [ebp - 0x5e0], eax
jmp 0x45af9a
mov edi, dword [ebp - 0x5d8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
inc eax
mov dword [ebp - 0x5e0], eax
xor edi, edi
add dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x5d8]
mov dword [ebp - 0x5d0], eax
mov dword [ebp - 0x5d4], edi
cmp dword [ebp - 0x5d4], 0x1e
jge 0x45afcd
mov eax, dword [ebp - 0x5d8]
cmp byte [eax], 0x14
jne 0x45b032
add dword [ebp - 0x5d8], 4
cmp dword [ebp - 0x5d4], 0x2a
jne 0x45afe2
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 0x37c]
add eax, ecx
cmp dword [ebp - 0x5d8], eax
jae 0x45b150
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x5d8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x5dc], eax
push edi
push edi
push eax
lea eax, [ebp - 0x5b4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x5d8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x45b09d
inc dword [ebp - 0x5d8]
inc dword [ebp - 0x5d4]
jmp 0x45afb2
cmp eax, edi
je 0x45b071
lea eax, [ebx + 0x16]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x5e4], eax
push edi
push edi
push eax
lea eax, [ebp - 0x5b4]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x16]
push eax
jmp 0x45b028
lea edi, [ebx + 0x16]
lea edx, [ebp - 0x5b4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x678]
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x4a0]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x5c8]
mov dword [ebp - 0x39c], edx
mov eax, dword [ebp - 0x4b0]
inc eax
mov dword [ebp - 0x398], eax
lea edi, [ebp - 0x5b4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x50], ecx
push 0x41
pop ecx
lea edi, [ebp - 0x4a0]
rep stosd dword es:[edi], eax
test edx, edx
je 0x45b0ef
cmp dword [ebp - 0x50], 4
jle 0x45b0ef
sub dword [ebp - 0x50], 4
mov eax, 0x103
cmp dword [ebp - 0x50], eax
jle 0x45b0fc
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [esi + 0x10]
call fcn.00456b2c
xor edi, edi
add ebx, dword [ebp - 0x5b8]
mov dword [ebp - 0x390], ebx
mov eax, dword [ebp - 0x384]
mov ecx, dword [ebp - 0x5f0]
add eax, ecx
cmp ebx, eax
jae 0x45b150
inc dword [ebp - 0x4a4]
jmp 0x45aebf
or dword [ebp - 4], 0xffffffff
jmp 0x45b167
push dword [ebp - 0x37c]
call fcn.0045e98b
pop ecx
xor edi, edi
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b19e
xor edi, edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x67c], eax
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x45b1b3
mov dword [ebp - 0x1c], edi
jmp 0x45b1c3
mov eax, dword [eax + 8]
sub eax, ecx
cdq
mov ecx, 0x110
idiv ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], edi
jne 0x45b1cf
xor eax, eax
jmp 0x45b492
mov dword [ebp - 0x48], 0x15
push dword [ebp + 8]
push 4
push 0x110a
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x45b32c
mov dword [ebp - 0x44], eax
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x364]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x104
lea eax, [ebp - 0x48]
push eax
push 0
push 0x110c
push dword [esi + 4]
call ebx
test eax, eax
je 0x45b31a
xor eax, eax
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x1c], eax
jle 0x45b31a
mov dword [ebp - 0x680], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x680]
lea edi, [ecx + eax]
mov dword [ebp - 0x684], edi
mov eax, dword [ebp - 0x38]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x45b27c
test cl, cl
je 0x45b278
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x45b27c
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x45b25a
xor eax, eax
jmp 0x45b281
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, edx
jne 0x45b2c8
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov edi, dword [ebp - 0x684]
mov dword [edi + 0x10c], eax
cmp cx, 2
jne 0x45b2b0
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
jne 0x45b2e9
cmp cx, 1
jne 0x45b2c8
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
je 0x45b2e9
inc dword [ebp - 0x25c]
add dword [ebp - 0x680], 0x110
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x1c]
jl 0x45b245
jmp 0x45b31a
mov eax, dword [ebp - 0x25c]
imul eax, eax, 0x110
mov edi, dword [esi + 0x14]
movzx eax, word [eax + edi + 0x108]
shl eax, 0x10
movzx ecx, cx
or eax, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push edx
push 0x110d
push dword [esi + 4]
call ebx
push dword [ebp - 0x20]
push 1
push 0x110a
push dword [esi + 4]
jmp 0x45b1e9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x374], eax
xor edi, edi
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x370], 0x4572a3
lea eax, [ebp - 0x374]
push eax
push edi
push 0x1115
push dword [esi + 4]
call ebx
mov eax, dword [ebp - 0x67c]
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x45b36b
mov dword [ebp - 0x1c], edi
jmp 0x45b37b
mov eax, dword [eax + 8]
sub eax, ecx
cdq
mov ecx, 0x110
idiv ecx
mov dword [ebp - 0x1c], eax
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x15
push dword [ebp + 8]
push 4
push 0x110a
push dword [esi + 4]
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x45b47e
mov dword [ebp - 0x44], eax
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x364]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x104
lea eax, [ebp - 0x48]
push eax
push 0
push 0x110c
push dword [esi + 4]
call ebx
test eax, eax
je 0x45b474
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x45b474
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68c], eax
mov eax, dword [ebp - 0x688]
mov cl, byte [eax]
mov byte [ebp - 0x68d], cl
mov edx, dword [ebp - 0x68c]
cmp cl, byte [edx]
jne 0x45b436
test cl, cl
je 0x45b432
mov cl, byte [eax + 1]
mov byte [ebp - 0x68e], cl
cmp cl, byte [edx + 1]
jne 0x45b436
inc eax
inc eax
add dword [ebp - 0x68c], 2
test cl, cl
jne 0x45b401
xor eax, eax
jmp 0x45b43b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45b451
inc edi
add dword [ebp - 0x688], 0x110
cmp edi, dword [ebp - 0x1c]
jl 0x45b3f2
jmp 0x45b474
imul edi, edi, 0x110
mov eax, dword [esi + 0x14]
mov eax, dword [edi + eax + 0x10c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x110d
push dword [esi + 4]
call ebx
push dword [ebp - 0x20]
push 1
jmp 0x45b391
mov ecx, dword [ebp - 0x67c]
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.0045b518
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4