Function at 0x405000
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eaf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x4804ec]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x4429a8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x20019
push eax
push 0x45261c
push SysReAllocString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004121b0
cmp eax, ebx
je 0x4050a0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x45263c
push esi
lea ecx, [ebp - 0x30]
call fcn.00412430
lea edx, [ebp - 0x10]
lea eax, [esi + 4]
push edx
push 0x452644
push eax
lea ecx, [ebp - 0x30]
call fcn.00412430
lea ecx, [ebp - 0x10]
add esi, 8
push ecx
push 0x45264c
push esi
lea ecx, [ebp - 0x30]
call fcn.00412430
jmp 0x40513e
mov edx, dword [0x4804ec]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x10]
push 0x20019
push eax
push str.SoftwareSiber_SystemsRoboformUser
push SysReAllocString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004121b0
cmp eax, ebx
je 0x405182
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x45267c
push esi
lea ecx, [ebp - 0x24]
call fcn.00412430
lea edx, [ebp - 0x10]
lea eax, [esi + 4]
push edx
push 0x452684
push eax
lea ecx, [ebp - 0x24]
call fcn.00412430
lea ecx, [ebp - 0x10]
lea edx, [esi + 8]
push ecx
push 0x45268c
push edx
lea ecx, [ebp - 0x24]
call fcn.00412430
push esi
call fcn.004053b0
mov eax, dword [ebp - 0x20]
add esp, 4
cmp eax, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], edi
je 0x405136
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x1c]
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004368f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x30], edi
je 0x405164
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x28]
call fcn.004368f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4804ec]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], edi
lea ecx, [ebp - 0x10]
push 0x20019
push ecx
push str.SoftwareMicrosoftInternet_Account_Manager
push SysReAllocString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004121b0
cmp eax, ebx
je 0x405289
mov edx, dword [0x4804ec]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
push str.Default_Mail_Account
push ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00412430
mov edx, dword [0x4804ec]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push str.Accounts_
push ecx
mov byte [ebp - 4], 5
call fcn.00436ce0
mov eax, dword [eax]
lea edx, [ebp - 0x10]
push 0x20019
push edx
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00412090
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004368f0
cmp esi, ebx
je 0x405258
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push str.SMTP_Display_Name
push esi
lea ecx, [ebp - 0x3c]
call fcn.00412430
lea edx, [ebp - 0x10]
lea eax, [esi + 4]
push edx
push str.SMTP_Email_Address
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412430
jmp 0x40525b
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp eax, ebx
mov dword [ebp - 0x3c], edi
je 0x405273
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], ebx
lea ecx, [ebp - 0x34]
call fcn.004368f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004368f0
jmp 0x40528c
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
cmp dword [ecx - 8], ebx
jne 0x4052be
lea edx, [ebp + 8]
mov ecx, esi
push edx
push 0x100
mov dword [ebp + 8], 0x100
call fcn.00436e70
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4052be
push 0xffffffffffffffff
mov ecx, esi
call fcn.00436ef0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp eax, ebx
mov dword [ebp - 0x48], edi
je 0x4052da
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x44], ebx
jmp 0x4052e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
call fcn.004368f0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, ebx
mov dword [ebp - 0x24], edi
je 0x4052fc
push eax
call esi
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x1c]
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004368f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x30], edi
je 0x405326
push eax
call esi
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x28]
call fcn.004368f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret