Function at 0x45855b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403070
push 0x45c1d4
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.00426820
mov dword [ebp - 0x260], eax
mov al, byte [0x45e298]
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.0045493f
lea eax, [ebp - 0x154]
push eax
push 0x41074c
push 0x40aa38
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 0x4589d1
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 0x410744
push dword [ebp - 0x368]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
cmp dword [ebp - 0x378], edi
jbe 0x4589aa
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 0x45867f
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4589fd
lea eax, [ebp - 0x378]
push eax
push edi
lea eax, [ebp - 0x380]
push eax
push 0
push 0x410744
push dword [ebp - 0x368]
call ebx
test eax, eax
jne 0x45899c
cmp dword [ebp - 0x380], 3
jne 0x45899c
mov eax, dword [edi + 8]
mov dword [ebp - 0x384], eax
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x388], edi
test edi, edi
jbe 0x45899c
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.00458d4d
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x4a4], edi
mov edx, dword [ebp - 0x388]
cmp dword [ebp - 0x4a4], edx
jae 0x458985
mov eax, dword [ebx]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xfffffffb
jne 0x458728
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 0x45895c
cmp dword [ebp - 0x260], edi
je 0x458878
lea ecx, [ebx + 0x16]
mov dword [ebp - 0x5d8], ecx
cmp eax, edi
je 0x4587b4
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
inc eax
inc eax
mov dword [ebp - 0x5e0], eax
cmp eax, 0x10
jle 0x4587cf
push 0x10
pop eax
mov dword [ebp - 0x5e0], eax
jmp 0x4587cf
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 0x458802
mov eax, dword [ebp - 0x5d8]
cmp byte [eax], 0x14
jne 0x458867
add dword [ebp - 0x5d8], 4
cmp dword [ebp - 0x5d4], 0x2a
jne 0x458817
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 0x458985
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 0x4588d2
inc dword [ebp - 0x5d8]
inc dword [ebp - 0x5d4]
jmp 0x4587e7
cmp eax, edi
je 0x4588a6
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 0x45885d
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 0x458924
cmp dword [ebp - 0x50], 4
jle 0x458924
sub dword [ebp - 0x50], 4
mov eax, 0x103
cmp dword [ebp - 0x50], eax
jle 0x458931
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.0045435f
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 0x458985
inc dword [ebp - 0x4a4]
jmp 0x4586f4
or dword [ebp - 4], 0xffffffff
jmp 0x45899c
push dword [ebp - 0x37c]
call fcn.0045c12b
pop ecx
xor edi, edi
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4589d3
xor edi, edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x67c], eax
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x4589e8
mov dword [ebp - 0x1c], edi
jmp 0x4589f8
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 0x458a04
xor eax, eax
jmp 0x458cc7
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 0x458b61
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 0x458b4f
xor eax, eax
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x1c], eax
jle 0x458b4f
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 0x458ab1
test cl, cl
je 0x458aad
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x458ab1
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x458a8f
xor eax, eax
jmp 0x458ab6
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, edx
jne 0x458afd
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov edi, dword [ebp - 0x684]
mov dword [edi + 0x10c], eax
cmp cx, 2
jne 0x458ae5
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
jne 0x458b1e
cmp cx, 1
jne 0x458afd
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
je 0x458b1e
inc dword [ebp - 0x25c]
add dword [ebp - 0x680], 0x110
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x1c]
jl 0x458a7a
jmp 0x458b4f
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 0x458a1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x374], eax
xor edi, edi
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x370], 0x454ad6
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 0x458ba0
mov dword [ebp - 0x1c], edi
jmp 0x458bb0
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 0x458cb3
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 0x458ca9
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x458ca9
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 0x458c6b
test cl, cl
je 0x458c67
mov cl, byte [eax + 1]
mov byte [ebp - 0x68e], cl
cmp cl, byte [edx + 1]
jne 0x458c6b
inc eax
inc eax
add dword [ebp - 0x68c], 2
test cl, cl
jne 0x458c36
xor eax, eax
jmp 0x458c70
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x458c86
inc edi
add dword [ebp - 0x688], 0x110
cmp edi, dword [ebp - 0x1c]
jl 0x458c27
jmp 0x458ca9
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 0x458bc6
mov ecx, dword [ebp - 0x67c]
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.00458d4d
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4