Function at 0x40e94c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
mov eax, 0x4c75e0
call fcn.004a2f4c
mov word [ebp - 0x84], 8
lea eax, [ebp - 4]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov word [ebp - 0x84], 0x20
lea eax, [ebp - 8]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov word [ebp - 0x84], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov word [ebp - 0x84], 0x38
lea eax, [ebp - 0x10]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov word [ebp - 0x84], 0x44
lea eax, [ebp - 0x14]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov word [ebp - 0x84], 0x50
lea eax, [ebp - 0x18]
call fcn.00401d74
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 0x14
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0xa0], 0xff
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x1a0]
push ecx
call sub.ADVAPI32.DLL_GetUserNameA
mov word [ebp - 0x84], 0x5c
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x1c]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x84], 0x68
mov edx, str.SoftwareMicroSoftWindowsCurrentVersionExplorer
lea eax, [ebp - 0x20]
call fcn.004acfb4
inc dword [ebp - 0x78]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4535c8]
call fcn.00453d70
mov dword [ebp - 0x98], eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x84], 0x74
mov edx, 0x4c2ff1
lea eax, [ebp - 0x2c]
call fcn.004acfb4
inc dword [ebp - 0x78]
push dword [eax]
lea eax, [ebp - 0x30]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
mov edx, str.AppData
lea eax, [ebp - 0x28]
call fcn.004acfb4
inc dword [ebp - 0x78]
push dword [eax]
mov edx, str.Shell_Folders
lea eax, [ebp - 0x24]
call fcn.004acfb4
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov eax, dword [ebp - 0x98]
pop ecx
call fcn.00453e04
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x18]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x40eb7e
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov word [ebp - 0x84], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x84], 0x80
mov word [ebp - 0x84], 0x98
lea eax, [ebp - 0x40]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
mov edx, str.MicrosoftAddress_Book_
lea eax, [ebp - 0x3c]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x18]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x44]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x78]
lea edx, [ebp - 4]
pop eax
call fcn.004ad114
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x4c]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
mov edx, str..wab
lea eax, [ebp - 0x48]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.004ad114
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0xc]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004ad0d0
mov eax, dword [ebp - 0xc]
call fcn.00455f6c
test al, al
je 0x40ef24
lea edx, [ebp - 8]
push edx
push dword [ebp - 0xc]
call fcn.0040ae28
add esp, 8
mov word [ebp - 0x84], 0xa4
lea eax, [ebp - 0x50]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.00401d50
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 0x1a6b5
call fcn.004ad330
lea edx, [ebp - 0x50]
lea eax, [ebp - 8]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x84], 0xb0
lea eax, [ebp - 0x54]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
lea eax, [ebp - 8]
mov ecx, 0x800
mov edx, 1
call fcn.004ad330
lea edx, [ebp - 0x54]
lea eax, [ebp - 8]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x84], 0xbc
mov edx, 0x4c3010
lea eax, [ebp - 0x58]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x10]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x84], 0xc8
mov edx, 0x4c3011
lea eax, [ebp - 0x5c]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x14]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004ad0d0
cmp dword [ebp - 0x9c], 0x800
jg 0x40ef24
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x9c]
call fcn.00401e94
cmp byte [eax], 0
je 0x40ee0b
mov edx, dword [ebp - 0x9c]
inc edx
lea eax, [ebp - 8]
call fcn.00401e94
cmp byte [eax], 0
jne 0x40ee0b
mov word [ebp - 0x84], 0xd4
lea eax, [ebp - 0x64]
call fcn.00401d74
push eax
inc dword [ebp - 0x78]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x9c]
call fcn.00401e94
mov dl, byte [eax]
lea eax, [ebp - 0x60]
call fcn.004ad084
inc dword [ebp - 0x78]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x14]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x14]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004ad0d0
inc dword [ebp - 0x9c]
jmp 0x40ef14
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x9c]
call fcn.00401e94
cmp byte [eax], 0
jne 0x40ee3d
mov edx, dword [ebp - 0x9c]
inc edx
lea eax, [ebp - 8]
call fcn.00401e94
cmp byte [eax], 0
je 0x40ee3d
inc dword [ebp - 0x9c]
jmp 0x40ef14
lea eax, [ebp - 0x14]
call fcn.00401d50
add eax, eax
mov edx, 0x44
sub edx, eax
add dword [ebp - 0x9c], edx
mov word [ebp - 0x84], 0xe0
mov edx, 0x4c3012
lea eax, [ebp - 0x68]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x14]
call fcn.004ad1b8
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004ad0d0
pop ecx
test cl, cl
je 0x40eee0
mov word [ebp - 0x84], 0xec
lea eax, [ebp - 0x6c]
call fcn.00401d74
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x14]
call fcn.004ad284
test eax, eax
sete cl
and ecx, 1
push ecx
dec dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004ad0d0
pop ecx
test cl, cl
je 0x40eee0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov word [ebp - 0x84], 0xf8
mov edx, 0x4c3013
lea eax, [ebp - 0x70]
call fcn.004acfb4
inc dword [ebp - 0x78]
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x14]
call fcn.004ad100
dec dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004ad0d0
cmp dword [ebp - 0x9c], 0x800
jle 0x40ed6e
dec dword [ebp - 0x78]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret