Function at 0x401dc0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
lea ecx, [ebp - 0x250]
push edi
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x2a0], ax
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x274], 0x4099f0
mov edi, dword [ebp - 0x28c]
mov esi, dword [ebp - 0x274]
mov ecx, 0x326144ab
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 - 0x220]
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x28c], 0x409a00
mov edi, dword [ebp - 0x274]
mov esi, dword [ebp - 0x28c]
mov ecx, 0x1ba0b72c
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 - 0x258]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 1
push 0
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x258]
mov edi, dword [eax]
mov ebx, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x294]
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 - 0x258]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x28]
push ecx
mov dword [eax + 0xc], esi
call edx
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x260]
push edx
push 0x40ca6c
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x254]
push edx
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
lea edx, [ebp - 0x280]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 1
push eax
call edx
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
lea edx, [ebp - 0x270]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x278]
push edx
mov dword [ebp - 0xc], 0x31
mov ecx, dword [eax]
push 9
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x28c], 0x409980
mov edi, dword [ebp - 0x274]
mov esi, dword [ebp - 0x28c]
mov ecx, 0x2b2178e3
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 - 0x27c]
push edx
lea edx, [ebp - 0x230]
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
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 0x284], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [ebp - 0x210]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
lea edx, [ebp - 0x288]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
lea edx, [ebp - 0x26c]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
lea edx, [ebp - 0x268]
push edx
push 0
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x240]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x28c], 0x409990
mov edi, dword [ebp - 0x274]
mov esi, dword [ebp - 0x28c]
mov ecx, 0xcc93631
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 - 0x268]
mov ecx, dword [eax]
lea edx, [ebp - 0x264]
push edx
lea edx, [ebp - 0x240]
push edx
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x44f948
push eax
call edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push 0x44f8c8
push eax
call edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x260]
mov edi, dword [eax]
mov edx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x294]
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x29c]
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 - 0x254]
push 6
push edx
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 0x260]
push 0x44f908
push eax
call ecx
mov eax, dword [ebp - 0x260]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x402294
mov ecx, 1
mov word [ebp - 0x2a0], cx
mov esi, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x274]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], esi
mov esi, dword [ebp - 0x29c]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x298]
mov dword [ebp - 0x274], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
mov dword [ecx + 8], esi
mov esi, dword [ebp - 0x294]
push eax
mov dword [ecx + 0xc], esi
call edx
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x40226d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x25c]
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 - 4]
xor ecx, ebp
call fcn.00402c0c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00402c0c
mov esp, ebp
pop ebp
ret