Function at 0x45936a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403028
push 0x45d024
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.00426b27
mov dword [ebp - 0x260], eax
mov al, byte [0x45f128]
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.0045574e
lea eax, [ebp - 0x154]
push eax
push 0x410b4c
push 0x40aab0
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4597e0
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 0x410b44
push dword [ebp - 0x368]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
cmp dword [ebp - 0x378], edi
jbe 0x4597b9
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 0x45948e
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45980c
lea eax, [ebp - 0x378]
push eax
push edi
lea eax, [ebp - 0x380]
push eax
push 0
push 0x410b44
push dword [ebp - 0x368]
call ebx
test eax, eax
jne 0x4597ab
cmp dword [ebp - 0x380], 3
jne 0x4597ab
mov eax, dword [edi + 8]
mov dword [ebp - 0x384], eax
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x388], edi
test edi, edi
jbe 0x4597ab
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.00459b5c
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x4a4], edi
mov edx, dword [ebp - 0x388]
cmp dword [ebp - 0x4a4], edx
jae 0x459794
mov eax, dword [ebx]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xfffffffb
jne 0x459537
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 0x45976b
cmp dword [ebp - 0x260], edi
je 0x459687
lea ecx, [ebx + 0x16]
mov dword [ebp - 0x5d8], ecx
cmp eax, edi
je 0x4595c3
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
inc eax
inc eax
mov dword [ebp - 0x5e0], eax
cmp eax, 0x10
jle 0x4595de
push 0x10
pop eax
mov dword [ebp - 0x5e0], eax
jmp 0x4595de
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 0x459611
mov eax, dword [ebp - 0x5d8]
cmp byte [eax], 0x14
jne 0x459676
add dword [ebp - 0x5d8], 4
cmp dword [ebp - 0x5d4], 0x2a
jne 0x459626
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 0x459794
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 0x4596e1
inc dword [ebp - 0x5d8]
inc dword [ebp - 0x5d4]
jmp 0x4595f6
cmp eax, edi
je 0x4596b5
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 0x45966c
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 0x459733
cmp dword [ebp - 0x50], 4
jle 0x459733
sub dword [ebp - 0x50], 4
mov eax, 0x103
cmp dword [ebp - 0x50], eax
jle 0x459740
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.0045516e
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 0x459794
inc dword [ebp - 0x4a4]
jmp 0x459503
or dword [ebp - 4], 0xffffffff
jmp 0x4597ab
push dword [ebp - 0x37c]
call fcn.0045cf75
pop ecx
xor edi, edi
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4597e2
xor edi, edi
lea eax, [esi + 0x10]
mov dword [ebp - 0x67c], eax
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x4597f7
mov dword [ebp - 0x1c], edi
jmp 0x459807
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 0x459813
xor eax, eax
jmp 0x459ad6
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 0x459970
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 0x45995e
xor eax, eax
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x1c], eax
jle 0x45995e
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 0x4598c0
test cl, cl
je 0x4598bc
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4598c0
inc edi
inc edi
inc eax
inc eax
test cl, cl
jne 0x45989e
xor eax, eax
jmp 0x4598c5
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, edx
jne 0x45990c
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov edi, dword [ebp - 0x684]
mov dword [edi + 0x10c], eax
cmp cx, 2
jne 0x4598f4
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
jne 0x45992d
cmp cx, 1
jne 0x45990c
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x680]
cmp dword [edi + eax + 0x104], edx
je 0x45992d
inc dword [ebp - 0x25c]
add dword [ebp - 0x680], 0x110
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp - 0x1c]
jl 0x459889
jmp 0x45995e
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 0x45982d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x374], eax
xor edi, edi
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x370], 0x4558e5
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 0x4599af
mov dword [ebp - 0x1c], edi
jmp 0x4599bf
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 0x459ac2
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 0x459ab8
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x459ab8
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 0x459a7a
test cl, cl
je 0x459a76
mov cl, byte [eax + 1]
mov byte [ebp - 0x68e], cl
cmp cl, byte [edx + 1]
jne 0x459a7a
inc eax
inc eax
add dword [ebp - 0x68c], 2
test cl, cl
jne 0x459a45
xor eax, eax
jmp 0x459a7f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x459a95
inc edi
add dword [ebp - 0x688], 0x110
cmp edi, dword [ebp - 0x1c]
jl 0x459a36
jmp 0x459ab8
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 0x4599d5
mov ecx, dword [ebp - 0x67c]
push dword [ecx + 8]
push dword [ecx + 4]
call fcn.00459b5c
push 1
pop eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4