Function at 0x459deb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403028
push 0x45db24
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.00426f93
mov dword [ebp - 0x260], eax
mov al, byte [0x45fc38]
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.004561cf
lea eax, [ebp - 0x154]
push eax
push 0x410f58
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 0x45a261
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 0x410f50
push dword [ebp - 0x368]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
cmp dword [ebp - 0x378], edi
jbe 0x45a23a
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 0x459f0f
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45a28d
lea eax, [ebp - 0x378]
push eax
push edi
lea eax, [ebp - 0x380]
push eax
push 0
push 0x410f50
push dword [ebp - 0x368]
call ebx
test eax, eax
jne 0x45a22c
cmp dword [ebp - 0x380], 3
jne 0x45a22c
mov eax, dword [edi + 8]
mov dword [ebp - 0x384], eax
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x388], edi
test edi, edi
jbe 0x45a22c
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.0045a5dd
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x4a4], edi
mov edx, dword [ebp - 0x388]
cmp dword [ebp - 0x4a4], edx
jae 0x45a215
mov eax, dword [ebx]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xfffffffb
jne 0x459fb8
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 0x45a1ec
cmp dword [ebp - 0x260], edi
je 0x45a108
lea ecx, [ebx + 0x16]
mov dword [ebp - 0x5d8], ecx
cmp eax, edi
je 0x45a044
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
inc eax
inc eax
mov dword [ebp - 0x5e0], eax
cmp eax, 0x10
jle 0x45a05f
push 0x10
pop eax
mov dword [ebp - 0x5e0], eax
jmp 0x45a05f
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 0x45a092
mov eax, dword [ebp - 0x5d8]
cmp byte [eax], 0x14
jne 0x45a0f7
add dword [ebp - 0x5d8], 4
cmp dword [ebp - 0x5d4], 0x2a
jne 0x45a0a7
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 0x45a215
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 0x45a162
inc dword [ebp - 0x5d8]
inc dword [ebp - 0x5d4]
jmp 0x45a077
cmp eax, edi
je 0x45a136
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 0x45a0ed
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 0x45a1b4
cmp dword [ebp - 0x50], 4
jle 0x45a1b4
sub dword [ebp - 0x50], 4
mov eax, 0x103
cmp dword [ebp - 0x50], eax
jle 0x45a1c1
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.00455bef
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 0x45a215
inc dword [ebp - 0x4a4]
jmp 0x459f84
or dword [ebp - 4], 0xffffffff
jmp 0x45a22c
push dword [ebp - 0x37c]
call fcn.0045da7b
pop ecx
xor edi, edi
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45a263
xor edi, edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x67c], eax
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x45a278
mov dword [ebp - 0x1c], edi
jmp 0x45a288
mov eax, dword [eax + 8]
sub eax, ecx
cdq
mov ecx, pe_nt_image_headers32
idiv ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], edi
jne 0x45a294
xor eax, eax
jmp 0x45a557
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 0x45a3f1
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 0x45a3df
xor eax, eax
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x1c], eax
jle 0x45a3df
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 0x45a341
test cl, cl
je 0x45a33d
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x45a341
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x45a31f
xor eax, eax
jmp 0x45a346
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, edx
jne 0x45a38d
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov edi, dword [ebp - 0x684]
mov dword [edi + 0x10c], eax
cmp cx, 2
jne 0x45a375
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
jne 0x45a3ae
cmp cx, 1
jne 0x45a38d
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
je 0x45a3ae
inc dword [ebp - 0x25c]
add dword [ebp - 0x680], 0x110
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x1c]
jl 0x45a30a
jmp 0x45a3df
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 0x45a2ae
mov eax, dword [ebp + 8]
mov dword [ebp - 0x374], eax
xor edi, edi
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x370], 0x456366
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 0x45a430
mov dword [ebp - 0x1c], edi
jmp 0x45a440
mov eax, dword [eax + 8]
sub eax, ecx
cdq
mov ecx, pe_nt_image_headers32
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 0x45a543
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 0x45a539
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x45a539
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 0x45a4fb
test cl, cl
je 0x45a4f7
mov cl, byte [eax + 1]
mov byte [ebp - 0x68e], cl
cmp cl, byte [edx + 1]
jne 0x45a4fb
inc eax
inc eax
add dword [ebp - 0x68c], 2
test cl, cl
jne 0x45a4c6
xor eax, eax
jmp 0x45a500
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45a516
inc edi
add dword [ebp - 0x688], 0x110
cmp edi, dword [ebp - 0x1c]
jl 0x45a4b7
jmp 0x45a539
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 0x45a456
mov ecx, dword [ebp - 0x67c]
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.0045a5dd
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4