Function at 0x401830
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor eax, eax
lea ecx, [ebp - 0x234]
push edi
mov dword [ebp - 0x264], 0
mov word [ebp - 0x29c], ax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x280], 0x408918
mov edi, dword [ebp - 0x288]
mov esi, dword [ebp - 0x280]
mov ecx, 0x327fc92b
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
sub edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
sub edx, ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 6
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edx, [ebp - 0x254]
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x280], 0x408928
mov edi, dword [ebp - 0x288]
mov esi, dword [ebp - 0x280]
mov ecx, 0x1baff96c
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
sub edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
sub edx, ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 1
push 0
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x25c]
mov edi, dword [eax]
mov ebx, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x298]
mov edx, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x25c]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x28]
push ecx
mov dword [eax + 0xc], esi
call edx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax]
lea edx, [ebp - 0x268]
push edx
push 0x408aa4
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax]
lea edx, [ebp - 0x258]
push edx
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x25c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x27c]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 1
push eax
call edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x26c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x260]
mov dword [ebp - 0x10], 0x31
push edx
je 0x401ada
mov dword [ebp - 0x284], 0
mov ecx, dword [eax]
push 8
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x280], 0x408938
mov edi, dword [ebp - 0x288]
mov esi, dword [ebp - 0x280]
mov ecx, 0x1f237ee0
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
sub edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
sub edx, ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x284]
push edx
lea edx, [ebp - 0x224]
push edx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x24]
jmp 0x401bb8
mov ecx, dword [eax]
push 9
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], 0x4088a8
mov edi, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
mov ecx, 0x2b219ff3
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
sub edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
sub edx, ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x284]
push edx
lea edx, [ebp - 0x224]
push edx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov dword [ebp - 0x288], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x284]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [ebp - 0x214]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x280]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x274]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax]
lea edx, [ebp - 0x278]
push edx
push 0
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x244]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], 0x4088b8
mov edi, dword [ebp - 0x2a4]
mov esi, dword [ebp - 0x2a0]
mov ecx, 0xfc44dc1
mov eax, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
sub edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub eax, ecx
sub edx, ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
lea edx, [ebp - 0x270]
push edx
lea edx, [ebp - 0x244]
push edx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x44b930
push eax
call edx
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push 0x44b8b0
push eax
call edx
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [ebp + 8], 0
je 0x401d3e
mov eax, 8
push str.NT_AUTHORITYSYSTEM
mov word [ebp - 0x224], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, dword [ebp - 0x298]
lea ecx, [ebp - 0x264]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x294]
mov dword [ecx + 8], esi
mov esi, dword [ebp - 0x290]
mov dword [ecx + 0xc], esi
mov edx, dword [ebp - 0x268]
push 5
mov edi, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x298]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x294]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], esi
mov esi, dword [ebp - 0x224]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [ebp - 0x220]
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x218]
push 6
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x258]
push ecx
push 0x44b8f0
push edx
mov edx, dword [edi + 0x44]
call edx
jmp 0x401dab
mov eax, dword [ebp - 0x268]
mov edi, dword [eax]
mov edx, dword [ebp - 0x294]
mov esi, dword [ebp - 0x290]
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp - 0x298]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
push 3
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x44]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x258]
push 6
push edx
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 0x268]
push 0x44b8f0
push eax
call ecx
mov eax, dword [ebp - 0x268]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x264]
test ecx, ecx
je 0x401e5b
mov eax, 1
mov word [ebp - 0x29c], ax
mov esi, dword [ebp - 0x29c]
lea eax, [ebp - 0x280]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x298]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
mov edx, dword [ecx]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x290]
push ecx
mov ecx, dword [edx + 0x30]
mov dword [eax + 0xc], esi
call ecx
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x401e34
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0040281c
mov esp, ebp
pop ebp
ret