Function at 0x4cfdd0
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcdc]
sub esp, 0xcdc
push 0xffffffffffffffff
push 0x6482de
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0xcd8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [str.GrabberData]
mov dword [ebp + 0xcb8], eax
mov ecx, dword [0x682178]
mov dword [ebp + 0xcbc], ecx
mov edx, dword [0x68217c]
mov dword [ebp + 0xcc0], edx
mov eax, dword [0x682180]
mov dword [ebp + 0xcc4], eax
mov ecx, dword [0x682184]
mov dword [ebp + 0xcc8], ecx
mov edx, dword [0x682188]
mov dword [ebp + 0xccc], edx
mov dword [ebp - 0x24], 0x80
mov dword [ebp - 0x20], 0x208
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xab0]
push ecx
push 0
push 0
push str.TempPath
mov edx, dword [0x752bcc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cfef6
lea eax, [ebp + 0xab0]
push eax
call fcn.00618573
add esp, 4
test eax, eax
jne 0x4cfef6
lea eax, [ebp + 0xab0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cfeb7
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0xaae], 0x5c
je 0x4cff2f
lea edi, [ebp + 0xab0]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4cfee0
mov ecx, dword [0x66e980]
mov dword [edi], ecx
jmp 0x4cff2f
push 0x104
lea edx, [ebp + 0xab0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4cff2f
push 0x5c
lea eax, [ebp + 0xab0]
push eax
call fcn.006152e7
add esp, 8
test eax, eax
je 0x4cff2f
xor ecx, ecx
mov word [eax], cx
push 0x7e
lea edx, [ebp + 0xab0]
push edx
call fcn.00617340
add esp, 8
test eax, eax
je 0x4cffb5
lea eax, [ebp + 0xab0]
push eax
lea ecx, [ebp + 0x210]
call fcn.00402180
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp + 8], cx
push 0x206
push ecx
lea edx, [ebp + 0xa]
push edx
call fcn.00615eb0
add esp, 0xc
mov eax, dword [ebp + 0x210]
test eax, eax
jne 0x4cff82
lea eax, [ebp + 0x214]
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00448230
add esp, 8
lea edx, [ebp + 0xab0]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4cff95
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x210]
call fcn.00401210
lea eax, [ebp + 0xab0]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cffc0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 0xaae], 0x5c
je 0x4cfff7
lea edi, [ebp + 0xab0]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4cffe3
mov edx, dword [0x66e980]
mov dword [edi], edx
push pe_nt_image_headers32
lea eax, [ebp + 0x428]
push eax
push pe_nt_image_headers32
lea ecx, [ebp + 0x228]
push ecx
push pe_nt_image_headers32
lea edx, [ebp + 0x628]
push edx
mov ebx, 3
push ebx
lea eax, [ebp + 0xcd0]
push eax
lea ecx, [ebp + 0xab0]
push ecx
call fcn.00618767
add esp, 0x24
test eax, eax
jne 0x4d0113
lea edx, [ebp + 0xcb8]
push edx
lea eax, [ebp + 0x628]
push eax
lea ecx, [ebp + 0xcd0]
push ecx
push 0x682164
lea edx, [ebp + 0xab0]
push edx
call fcn.0040f8d0
lea eax, [ebp + 0xab0]
push eax
call fcn.0061a00c
add esp, 0x18
test eax, eax
je 0x4d0149
call fcn.0061afe4
cmp dword [eax], 0xd
je 0x4d0149
call fcn.0061afe4
cmp dword [eax], 0x11
je 0x4d0149
lea ecx, [ebp + 0xab0]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00417c90
mov byte [ebp - 4], bl
mov esi, dword [0x753e84]
call fcn.0061afe4
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp]
call fcn.004b9e60
mov byte [ebp - 4], 4
push 1
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp]
call fcn.004b9fd0
push 0x50030
mov eax, dword [0x753e88]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call fcn.0046f2a0
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.004b9fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xcd8]
xor ecx, ebp
call fcn.006157d3
add ebp, 0xcdc
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0xa30]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4d0172
push str.default_user
lea ecx, [ebp + 0xa30]
push ecx
call fcn.0040f8d0
add esp, 8
mov byte [ebp - 0x15], 0
lea eax, [ebp + 0xa30]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d0180
sub eax, edx
sar eax, 1
je 0x4d02b6
lea edx, [ebp + 0xa30]
push edx
lea eax, [ebp + 0xcb8]
push eax
lea ecx, [ebp + 0x628]
push ecx
lea edx, [ebp + 0xcd0]
push edx
push str._s_s_s_s_
lea eax, [ebp + 0xab0]
push eax
call fcn.0040f8d0
lea ecx, [ebp + 0xab0]
push ecx
call fcn.0061a00c
add esp, 0x1c
test eax, eax
je 0x4d01ed
call fcn.0061afe4
cmp dword [eax], 0xd
je 0x4d01ed
call fcn.0061afe4
cmp dword [eax], 0x11
jne 0x4d02b6
mov byte [ebp - 0x15], 1
push 0
call fcn.00618f71
mov esi, eax
push esi
call fcn.0061a4e4
call fcn.0061a4f6
push eax
push esi
lea edx, [ebp + 0xab0]
push edx
push str._s_lua_lu_
lea eax, [ebp + 0x828]
push eax
call fcn.0040f8d0
lea ecx, [ebp + 0x828]
push ecx
call fcn.0061a00c
add esp, 0x20
xor edi, edi
cmp eax, edi
je 0x4d0353
call fcn.0061afe4
cmp dword [eax], 0xd
je 0x4d0353
call fcn.0061afe4
cmp dword [eax], 0x11
je 0x4d0353
lea edx, [ebp + 0x828]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00417c90
mov bl, 7
mov byte [ebp - 4], bl
mov esi, dword [0x753e84]
call fcn.0061afe4
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp]
call fcn.004b9e60
mov byte [ebp - 4], 8
push 1
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp]
call fcn.004b9fd0
push 0x50030
mov ecx, dword [0x753e88]
push ecx
mov edx, dword [ebp - 0x14]
push edx
jmp 0x4d00f2
lea edx, [ebp + 0xcb8]
push edx
lea eax, [ebp + 0x628]
push eax
lea ecx, [ebp + 0xcd0]
push ecx
push str._s_s_sdefault_user_
lea edx, [ebp + 0xab0]
push edx
call fcn.0040f8d0
lea eax, [ebp + 0xab0]
push eax
call fcn.0061a00c
add esp, 0x18
test eax, eax
je 0x4d01f1
call fcn.0061afe4
cmp dword [eax], 0xd
je 0x4d01f1
call fcn.0061afe4
cmp dword [eax], 0x11
je 0x4d01f1
lea ecx, [ebp + 0xab0]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00417c90
mov bl, 5
mov byte [ebp - 4], bl
mov esi, dword [0x753e84]
call fcn.0061afe4
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
lea ecx, [ebp]
call fcn.004b9e60
mov byte [ebp - 4], 6
jmp 0x4d00d5
push edi
lea eax, [ebp + 0x828]
push eax
push 0x66dea8
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x41c]
call fcn.004021b0
push edi
lea ecx, [ebp + 0x828]
push ecx
push 0x66dea8
mov ecx, 0x753624
call fcn.004021b0
mov dword [ebp + 0x21c], edi
mov dword [ebp + 0x224], edi
xor edx, edx
mov word [ebp + 0x220], dx
mov byte [ebp - 4], 9
push edi
lea eax, [ebp + 0x828]
push eax
push str._sgrprdb
lea ecx, [ebp + 0x21c]
call fcn.004021b0
mov eax, dword [ebp + 0x21c]
cmp eax, edi
jne 0x4d03c6
lea eax, [ebp + 0x220]
push edi
push eax
lea ecx, [esi + 0x300]
call fcn.005dc4f0
mov eax, dword [ebp + 0x21c]
cmp eax, edi
jne 0x4d03e3
lea eax, [ebp + 0x220]
push edi
push eax
lea ecx, [esi + 8]
call fcn.005deed0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x21c]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
jmp 0x4d0124