Function at 0x4c5004
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x6dd9a4]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0xe0
mov eax, 0x5b8430
call fcn.00518b46
mov eax, dword [ebp + 0x228]
xor ebx, ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x244], 8
mov ecx, dword [ebp + 0x230]
jae 0x4c5057
lea ecx, [ebp + 0x230]
lea edx, [ebp - 0x28]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [0x6e86bc]
test eax, eax
jne 0x4c56f5
call int.004b2f99
cmp eax, 6
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
mov dword [ebp - 0x18], 0x100
push eax
jl 0x4c53f1
lea eax, [ebp + 0x1c]
push eax
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call dword [0x6e86b8]
test eax, eax
jne 0x4c5160
mov esi, 0x684bb4
inc dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00412905
mov byte [ebp - 4], 2
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
push eax
push ecx
call fcn.00412905
mov byte [ebp - 4], 3
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp]
push eax
call fcn.00412905
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
push eax
push ecx
call fcn.00412905
add esp, 0xc
mov byte [ebp - 4], 5
push dword [ebp - 0x2c]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34]
call fcn.004c5004
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp]
call fcn.00410446
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x7c]
call fcn.00410446
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x100
push dword [ebp - 0x28]
call dword [0x6e86b8]
test eax, eax
je 0x4c50af
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
push ebx
jmp 0x4c53d8
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call fcn.004f3ce5
pop ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x1c]
cmp eax, ebx
je 0x4c51be
cmp eax, 0xea
jne 0x4c53b3
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xec]
call fcn.00411ca6
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00403b98
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34]
push eax
add ecx, 4
call fcn.004b1020
mov esi, eax
mov byte [ebp - 4], 7
push ebx
push edi
lea ecx, [ebp - 0xd0]
call fcn.00410446
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0xec]
call fcn.00410446
mov eax, dword [ebp - 0x30]
cmp eax, 4
jne 0x4c5246
cmp dword [ebp - 0x14], ebx
je 0x4c5233
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x4c5236
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004c45cf
jmp 0x4c53b3
cmp eax, edi
jne 0x4c52ce
cmp dword [ebp - 0x14], ebx
je 0x4c526a
push dword [ebp - 0x20]
lea ecx, [ebp - 0x98]
call fcn.00411ca6
mov byte [ebp - 4], 9
or dword [ebp - 0x10], edi
jmp 0x4c5288
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.00410889
lea eax, [ebp]
mov dword [ebp - 4], 0xa
or dword [ebp - 0x10], 2
push eax
mov ecx, esi
call fcn.004c4e45
mov dword [ebp - 4], 9
test byte [ebp - 0x10], 2
je 0x4c52ab
and dword [ebp - 0x10], 0xfffffffd
push ebx
push edi
lea ecx, [ebp]
call fcn.00410446
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 1
je 0x4c53b3
and dword [ebp - 0x10], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.00410446
jmp 0x4c53b3
cmp eax, 7
jne 0x4c5303
mov ecx, dword [ebp - 0x34]
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push dword [ebp - 0x20]
push eax
call fcn.004c4ec5
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.004c4e85
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00402185
jmp 0x4c53b3
cmp eax, 3
jne 0x4c53b3
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00411ca6
mov byte [ebp - 4], 0xc
or dword [ebp - 0x10], 4
push str.BuddyLoginPWAES
mov ecx, eax
call fcn.00406029
test eax, eax
jne 0x4c533d
test byte [ebp - 0x14], 0xf
mov byte [ebp - 0x21], 1
je 0x4c5340
mov byte [ebp - 0x21], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 4
je 0x4c535a
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea ecx, [ebp - 0xb4]
call fcn.00410446
cmp byte [ebp - 0x21], bl
je 0x4c53b3
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push eax
call fcn.004d6667
add esp, 0x10
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
shr ecx, 1
mov word [eax + ecx*2 - 2], bx
push eax
lea ecx, [ebp - 0x60]
call fcn.00411ca6
mov byte [ebp - 4], 0xe
push eax
mov ecx, esi
call fcn.004c4e45
mov byte [ebp - 4], 0xd
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410446
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004014ae
push dword [ebp - 0x20]
call fcn.00511c38
pop ecx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x100
push dword [ebp - 0x28]
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4c517b
jmp 0x4c56ec
lea eax, [ebp + 0x11c]
push eax
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4c54e4
mov esi, 0x684bb4
inc dword [ebp - 0x14]
push esi
sub esp, 0x1c
lea eax, [ebp + 0x11c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.004107e8
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.004a04d1
add esp, 0x20
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp]
push eax
call fcn.00412905
add esp, 0xc
mov byte [ebp - 4], 0x12
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410446
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x38], esp
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x248]
push ecx
push eax
call fcn.00403b98
mov byte [ebp - 4], 0x13
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x30], esp
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x22c]
push ecx
push eax
call fcn.00403b98
add esp, 0xc
mov byte [ebp - 4], 0x14
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x34]
call fcn.004c5004
mov dword [ebp - 0x18], 0x100
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp]
call fcn.00410446
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x11c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4c5412
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x11c]
push eax
mov dword [ebp - 0x14], ebx
push ebx
jmp 0x4c56dc
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x100
call fcn.004f3ce5
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x11c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call esi
inc dword [ebp - 0x14]
cmp eax, ebx
je 0x4c554a
cmp eax, 0xea
jne 0x4c56b4
sub esp, 0x1c
lea eax, [ebp + 0x11c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.004107e8
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 1
call fcn.004a04d1
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403b98
add esp, 0x2c
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x34]
push eax
add ecx, 4
call fcn.004b1020
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x16
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410446
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0xb4]
call fcn.00410446
cmp dword [ebp - 0x20], 4
jne 0x4c55e5
cmp dword [ebp - 0x1c], ebx
je 0x4c55d1
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x4c55d4
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.004c45cf
jmp 0x4c56b4
cmp dword [ebp - 0x20], edi
jne 0x4c5682
cmp dword [ebp - 0x1c], ebx
je 0x4c5624
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push dword [ebp - 0x30]
call fcn.004107e8
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.004a04d1
add esp, 0x20
mov byte [ebp - 4], 0x19
or dword [ebp - 0x10], 8
jmp 0x4c5642
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.00410889
lea eax, [ebp]
mov dword [ebp - 4], 0x1a
or dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004c4e45
mov dword [ebp - 4], 0x19
test byte [ebp - 0x10], 0x10
je 0x4c5666
and dword [ebp - 0x10], 0xffffffef
push ebx
push edi
lea ecx, [ebp]
call fcn.00410446
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 8
je 0x4c56b4
and dword [ebp - 0x10], 0xfffffff7
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.00410446
jmp 0x4c56b4
cmp dword [ebp - 0x20], 7
jne 0x4c56b4
mov ecx, dword [ebp - 0x34]
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
push dword [ebp - 0x30]
push eax
call fcn.004c4ec5
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004c4e85
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00402185
push dword [ebp - 0x30]
call fcn.00511c38
pop ecx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x11c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
je 0x4c5508
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0x22c]
call fcn.00410446
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x248]
call fcn.00410446
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.005112a7
add ebp, 0x220
leave
ret 0x3c