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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c0f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x784
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [str.GrabberData]
mov edx, dword [0x5aaf44]
mov eax, dword [0x5aaf48]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x13c]
push ecx
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [0x5c74b0]
push 0
push 0
push str.TempPath
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46c8d2
lea ecx, [ebp - 0x13c]
push ecx
call fcn.005297d3
add esp, 4
test eax, eax
jne 0x46c8d2
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x13d], 0x5c
je 0x46c909
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46c909
lea eax, [ebp - 0x13c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x46c909
lea ecx, [ebp - 0x13c]
push 0x5c
push ecx
call fcn.00526d20
add esp, 8
test eax, eax
je 0x46c909
mov byte [eax], 0
lea edx, [ebp - 0x13c]
push 0x7e
push edx
call fcn.00526d60
add esp, 8
test eax, eax
je 0x46c985
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0054222c
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 2
call fcn.00541f33
lea eax, [ebp - 0x24]
push eax
call fcn.00429630
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x13c]
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]
lea ecx, [ebp - 0x24]
call fcn.005421be
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005421be
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x13d], 0x5c
je 0x46c9cf
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x690]
lea ecx, [ebp - 0x790]
push eax
lea edx, [ebp - 0x488]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x13c]
push eax
push ecx
call fcn.0052776a
add esp, 0x14
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x488]
lea ecx, [ebp - 0x18]
push edx
push eax
push ecx
lea edx, [ebp - 0x13c]
push str._s_s_s_
push edx
call fcn.00527718
lea eax, [ebp - 0x13c]
push eax
call fcn.005289a2
add esp, 0x18
test eax, eax
je 0x46cad5
call fcn.00529287
cmp dword [eax], 0xd
je 0x46cad5
call fcn.00529287
cmp dword [eax], 0x11
je 0x46cad5
mov esi, dword [0x5c7e34]
call fcn.00529287
mov ecx, dword [eax]
lea edx, [ebp - 0x13c]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0053afda
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.0045eaa0
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 3
call fcn.0045eb80
mov edx, dword [0x5c7e30]
mov eax, dword [ebp - 0x14]
push 0x50030
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x388]
call fcn.0045eb70
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x17c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x46cafe
lea eax, [ebp - 0x17c]
push str.default_user
push eax
call fcn.00527718
add esp, 8
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46cb6a
lea ecx, [ebp - 0x17c]
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x488]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x13c]
push str._s_s_s_s_
push edx
call fcn.00527718
lea eax, [ebp - 0x13c]
push eax
call fcn.005289a2
add esp, 0x1c
test eax, eax
je 0x46cc1a
call fcn.00529287
cmp dword [eax], 0xd
je 0x46cc1a
call fcn.00529287
cmp dword [eax], 0x11
je 0x46cc1a
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x488]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x13c]
push str._s_s_sdefault_user_
push ecx
call fcn.00527718
lea edx, [ebp - 0x13c]
push edx
call fcn.005289a2
add esp, 0x18
test eax, eax
je 0x46cc1a
call fcn.00529287
cmp dword [eax], 0xd
je 0x46cc1a
call fcn.00529287
cmp dword [eax], 0x11
je 0x46cc1a
mov esi, dword [0x5c7e34]
call fcn.00529287
mov eax, dword [eax]
lea ecx, [ebp - 0x13c]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0053afda
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.0045eaa0
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 4
call fcn.0045eb80
mov ecx, dword [0x5c7e30]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x388]
jmp 0x46caae
push 0
call fcn.00528272
mov esi, eax
push esi
call fcn.00528f9d
add esp, 8
call fcn.00528faa
push eax
lea eax, [ebp - 0x13c]
push esi
push eax
lea ecx, [ebp - 0x280]
push str._s_lda_ld_
push ecx
call fcn.00527718
lea edx, [ebp - 0x280]
push edx
call fcn.005289a2
add esp, 0x18
test eax, eax
je 0x46ccdb
call fcn.00529287
cmp dword [eax], 0xd
je 0x46ccdb
call fcn.00529287
cmp dword [eax], 0x11
je 0x46ccdb
mov esi, dword [0x5c7e34]
call fcn.00529287
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0053afda
add esp, 0x10
lea ecx, [ebp - 0x590]
call fcn.0045eaa0
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 5
call fcn.0045eb80
mov ecx, dword [0x5c7e30]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x590]
jmp 0x46caae
lea eax, [ebp - 0x280]
lea ecx, [ebx + 0x414]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
lea edx, [ebp - 0x280]
push edx
push 0x5a3e24
push 0x5c77d4
call fcn.0053afda
mov eax, dword [0x5c2a74]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x280]
lea edx, [ebp - 0x1c]
push ecx
push str._sgrprdb
push edx
mov byte [ebp - 4], 6
call fcn.0053afda
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebx + 0x2e8]
push 0
push eax
call fcn.0051aa80
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebx + 8]
call fcn.0051b1d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret