Function at 0x4cef5a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x70b744]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0xe0
mov eax, 0x5d40b1
call fcn.005234b0
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 0x4cefad
lea ecx, [ebp + 0x230]
lea edx, [ebp - 0x28]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [0x71f5dc]
test eax, eax
jne 0x4cf64b
call fcn.004c1998
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 0x4cf347
lea eax, [ebp + 0x1c]
push eax
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call dword [0x71f5d8]
test eax, eax
jne 0x4cf0b6
mov esi, 0x6a72ec
inc dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00412d30
mov byte [ebp - 4], 2
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
push eax
push ecx
call fcn.00412d30
mov byte [ebp - 4], 3
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp]
push eax
call fcn.00412d30
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
push eax
push ecx
call fcn.00412d30
add esp, 0xc
mov byte [ebp - 4], 5
push dword [ebp - 0x2c]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x34]
call fcn.004cef5a
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp]
call fcn.00410779
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0x7c]
call fcn.00410779
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 [0x71f5d8]
test eax, eax
je 0x4cf005
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 0x4cf32e
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call fcn.004fed14
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 0x4cf114
cmp eax, 0xea
jne 0x4cf309
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xec]
call fcn.004120e9
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00403bfd
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34]
push eax
add ecx, 4
call fcn.004ba0a6
mov esi, eax
mov byte [ebp - 4], 7
push ebx
push edi
lea ecx, [ebp - 0xd0]
call fcn.00410779
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0xec]
call fcn.00410779
mov eax, dword [ebp - 0x30]
cmp eax, 4
jne 0x4cf19c
cmp dword [ebp - 0x14], ebx
je 0x4cf189
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x4cf18c
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004ce525
jmp 0x4cf309
cmp eax, edi
jne 0x4cf224
cmp dword [ebp - 0x14], ebx
je 0x4cf1c0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x98]
call fcn.004120e9
mov byte [ebp - 4], 9
or dword [ebp - 0x10], edi
jmp 0x4cf1de
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.00410c09
lea eax, [ebp]
mov dword [ebp - 4], 0xa
or dword [ebp - 0x10], 2
push eax
mov ecx, esi
call fcn.004ced9b
mov dword [ebp - 4], 9
test byte [ebp - 0x10], 2
je 0x4cf201
and dword [ebp - 0x10], 0xfffffffd
push ebx
push edi
lea ecx, [ebp]
call fcn.00410779
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 1
je 0x4cf309
and dword [ebp - 0x10], 0xfffffffe
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.00410779
jmp 0x4cf309
cmp eax, 7
jne 0x4cf259
mov ecx, dword [ebp - 0x34]
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push dword [ebp - 0x20]
push eax
call fcn.004cee1b
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.004ceddb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004021a4
jmp 0x4cf309
cmp eax, 3
jne 0x4cf309
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004120e9
mov byte [ebp - 4], 0xc
or dword [ebp - 0x10], 4
push str.BuddyLoginPWAES
mov ecx, eax
call fcn.0040614f
test eax, eax
jne 0x4cf293
test byte [ebp - 0x14], 0xf
mov byte [ebp - 0x21], 1
je 0x4cf296
mov byte [ebp - 0x21], bl
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 4
je 0x4cf2b0
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea ecx, [ebp - 0xb4]
call fcn.00410779
cmp byte [ebp - 0x21], bl
je 0x4cf309
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
push eax
call fcn.004e6553
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.004120e9
mov byte [ebp - 4], 0xe
push eax
mov ecx, esi
call fcn.004ced9b
mov byte [ebp - 4], 0xd
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410779
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00448c99
push dword [ebp - 0x20]
call fcn.0051d89c
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 0x4cf0d1
jmp 0x4cf642
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 0x4cf43a
mov esi, 0x6a72ec
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.00410b44
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.004ae022
add esp, 0x20
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp]
push eax
call fcn.00412d30
add esp, 0xc
mov byte [ebp - 4], 0x12
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410779
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.00403bfd
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.00403bfd
add esp, 0xc
mov byte [ebp - 4], 0x14
push dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x34]
call fcn.004cef5a
mov dword [ebp - 0x18], 0x100
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp]
call fcn.00410779
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 0x4cf368
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 0x4cf632
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x100
call fcn.004fed14
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 0x4cf4a0
cmp eax, 0xea
jne 0x4cf60a
sub esp, 0x1c
lea eax, [ebp + 0x11c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00410b44
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 1
call fcn.004ae022
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp + 0x248]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403bfd
add esp, 0x2c
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x34]
push eax
add ecx, 4
call fcn.004ba0a6
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x16
push ebx
push edi
lea ecx, [ebp - 0x60]
call fcn.00410779
mov byte [ebp - 4], 1
push ebx
push edi
lea ecx, [ebp - 0xb4]
call fcn.00410779
cmp dword [ebp - 0x20], 4
jne 0x4cf53b
cmp dword [ebp - 0x1c], ebx
je 0x4cf527
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x4cf52a
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
push eax
call fcn.004ce525
jmp 0x4cf60a
cmp dword [ebp - 0x20], edi
jne 0x4cf5d8
cmp dword [ebp - 0x1c], ebx
je 0x4cf57a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push dword [ebp - 0x30]
call fcn.00410b44
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.004ae022
add esp, 0x20
mov byte [ebp - 4], 0x19
or dword [ebp - 0x10], 8
jmp 0x4cf598
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.00410c09
lea eax, [ebp]
mov dword [ebp - 4], 0x1a
or dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004ced9b
mov dword [ebp - 4], 0x19
test byte [ebp - 0x10], 0x10
je 0x4cf5bc
and dword [ebp - 0x10], 0xffffffef
push ebx
push edi
lea ecx, [ebp]
call fcn.00410779
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 8
je 0x4cf60a
and dword [ebp - 0x10], 0xfffffff7
push ebx
push edi
lea ecx, [ebp - 0x98]
call fcn.00410779
jmp 0x4cf60a
cmp dword [ebp - 0x20], 7
jne 0x4cf60a
mov ecx, dword [ebp - 0x34]
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
push dword [ebp - 0x30]
push eax
call fcn.004cee1b
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004ceddb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004021a4
push dword [ebp - 0x30]
call fcn.0051d89c
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 0x4cf45e
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.00410779
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x248]
call fcn.00410779
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.0051d721
add ebp, 0x220
leave
ret 0x3c