Function at 0x401140
Capabilities:
Get session user name
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x402027
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x404038]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x404038]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x288], ebx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x14]
mov byte [esp + 0x288], 1
call fcn.00401590
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4011bf
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x14]
mov edx, dword [0x4043b0]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [esp + 0x14], ebx
jne 0x4011de
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov esi, dword [esp + 0x14]
je 0x4011f2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [0x4043b0]
lea ecx, [esp + 0x1c]
push ecx
push 0x403134
push 0x403144
mov dword [esp + 0x28], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
push edx
push esi
call eax
mov byte [esp + 0x288], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x401236
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x403298
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40125d
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x10]
mov edx, dword [0x4043ac]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x401285
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x10]
mov edx, dword [0x4043b4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4012ad
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x40], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4012e8
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
push ebx
lea ecx, [esp + 0x70]
push ecx
push eax
call edx
xor eax, eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x288], 3
cmp dword [esp + 0x10], ebx
jne 0x401318
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, dword [esp + 0x10]
je 0x401328
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push edx
push esi
call eax
push 0x30
lea ecx, [esp + 0x40]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov word [esp + 0x40], 0x30
mov dword [esp + 0x60], 7
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x24]
mov cx, word [esp + 0x26]
mov dx, word [esp + 0x2a]
mov word [esp + 0x40], ax
movzx eax, word [esp + 0x2c]
mov esi, 1
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x2e]
add eax, esi
cmp word [esp + 0x30], 0x37
mov word [esp + 0x42], cx
mov word [esp + 0x44], dx
mov word [esp + 0x46], 0xbb8
mov word [esp + 0x48], si
mov word [esp + 0x4a], si
mov word [esp + 0x4e], ax
jbe 0x4013be
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4013d4
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov byte [esp + 0x288], 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x20], ebx
jne 0x401403
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x403268
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40142a
push 0x80004003
call fcn.00401600
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push esi
push ebx
push eax
call edx
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40144c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x288], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x401464
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40147c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401493
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4014ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004016fc
mov esp, ebp
pop ebp
ret