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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a21a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x784
mov eax, dword [0x65ca8c]
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 [0x63e8f0]
mov eax, dword [0x63e8f4]
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 [0x6614e8]
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 0x489562
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0056d78e
add esp, 4
test eax, eax
jne 0x489562
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x13d], 0x5c
je 0x489599
mov edi, 0x6384b8
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 0x489599
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 0x489599
lea ecx, [ebp - 0x13c]
push 0x5c
push ecx
call fcn.0056aa30
add esp, 8
test eax, eax
je 0x489599
mov byte [eax], 0
lea edx, [ebp - 0x13c]
push 0x7e
push edx
call fcn.0056aa70
add esp, 8
test eax, eax
je 0x489615
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x20]
push eax
call fcn.00586ba1
push ecx
lea edx, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
mov byte [ebp - 4], 2
call fcn.005868a8
lea eax, [ebp - 0x24]
push eax
call fcn.00434f90
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.00586b33
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00586b33
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 0x48965f
mov edi, 0x6384b8
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.0056b52c
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.0056b4da
lea eax, [ebp - 0x13c]
push eax
call fcn.0056c982
add esp, 0x18
test eax, eax
je 0x489765
call fcn.0056d327
cmp dword [eax], 0xd
je 0x489765
call fcn.0056d327
cmp dword [eax], 0x11
je 0x489765
mov esi, dword [0x662054]
call fcn.0056d327
mov ecx, dword [eax]
lea edx, [ebp - 0x13c]
push ecx
push edx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0057f8fb
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.00477f00
mov ecx, dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 3
call fcn.00478010
mov edx, dword [0x662050]
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.00478000
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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 0x48978e
lea eax, [ebp - 0x17c]
push str.default_user
push eax
call fcn.0056b4da
add esp, 8
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4897fa
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.0056b4da
lea eax, [ebp - 0x13c]
push eax
call fcn.0056c982
add esp, 0x1c
test eax, eax
je 0x4898aa
call fcn.0056d327
cmp dword [eax], 0xd
je 0x4898aa
call fcn.0056d327
cmp dword [eax], 0x11
je 0x4898aa
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.0056b4da
lea edx, [ebp - 0x13c]
push edx
call fcn.0056c982
add esp, 0x18
test eax, eax
je 0x4898aa
call fcn.0056d327
cmp dword [eax], 0xd
je 0x4898aa
call fcn.0056d327
cmp dword [eax], 0x11
je 0x4898aa
mov esi, dword [0x662054]
call fcn.0056d327
mov eax, dword [eax]
lea ecx, [ebp - 0x13c]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0057f8fb
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.00477f00
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 4
call fcn.00478010
mov ecx, dword [0x662050]
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 0x48973e
push 0
call fcn.0056c001
mov esi, eax
push esi
call fcn.0056cf9d
add esp, 8
call fcn.0056cfaa
push eax
lea eax, [ebp - 0x13c]
push esi
push eax
lea ecx, [ebp - 0x280]
push str._s_lda_ld_
push ecx
call fcn.0056b4da
lea edx, [ebp - 0x280]
push edx
call fcn.0056c982
add esp, 0x18
test eax, eax
je 0x48996b
call fcn.0056d327
cmp dword [eax], 0xd
je 0x48996b
call fcn.0056d327
cmp dword [eax], 0x11
je 0x48996b
mov esi, dword [0x662054]
call fcn.0056d327
mov eax, dword [eax]
lea ecx, [ebp - 0x280]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0057f8fb
add esp, 0x10
lea ecx, [ebp - 0x590]
call fcn.00477f00
mov eax, dword [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x590]
mov byte [ebp - 4], 5
call fcn.00478010
mov ecx, dword [0x662050]
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 0x48973e
lea eax, [ebp - 0x280]
lea ecx, [ebx + 0x424]
push eax
push 0x636fa0
push ecx
call fcn.0057f8fb
add esp, 0xc
lea edx, [ebp - 0x280]
push edx
push 0x636fa0
push 0x661894
call fcn.0057f8fb
mov eax, dword [0x65ca8c]
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.0057f8fb
mov eax, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ebx + 0x2f8]
push 0
push eax
call fcn.0055bc30
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebx + 8]
call fcn.0055c380
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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