Function at 0x446410
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4627d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x494680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
call fcn.00416e59
mov ecx, 0x498b90
call fcn.00402c10
mov ecx, eax
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x44]
call fcn.0040e5cd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.00404f90
mov dword [ebp - 4], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4464ca
push 0x46f28c
lea ecx, [ebp - 0x28]
call fcn.00401a60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e5cd
push 0x401
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x446520
push 0x46f2b8
lea ecx, [ebp - 0x2c]
call fcn.00401a60
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e5cd
push 0x403
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x446576
push 0x46f2e8
lea ecx, [ebp - 0x30]
call fcn.00401a60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e5cd
push 0x404
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4465cc
push 0x46f318
lea ecx, [ebp - 0x34]
call fcn.00401a60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040e5cd
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44661f
push 0x46f348
lea ecx, [ebp - 0x38]
call fcn.00401a60
mov byte [ebp - 4], 5
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040e5cd
push 2
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x446672
push 0x46f360
lea ecx, [ebp - 0x3c]
call fcn.00401a60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x498b90
call fcn.00454c10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00405030
lea ecx, [ebp - 0x14]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040e5cd
push 0x400
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44672b
lea ecx, [ebp - 0x20]
call fcn.00404f90
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x80], 0
je 0x4466bb
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x80]
call fcn.004081b0
push eax
lea ecx, [ebp - 0x20]
call fcn.004024f0
lea ecx, [ebp - 0x20]
call fcn.00402e40
movzx edx, al
test edx, edx
jne 0x4466d9
lea ecx, [ebp - 0x20]
call fcn.00404f20
cmp eax, 0x12c
jle 0x446701
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004021a0
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.004016e0
push 0x12c
mov ecx, dword [ebp - 0x1c]
call fcn.00408260
lea ecx, [ebp - 0x20]
call fcn.00404b10
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040e5cd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00405030
push 0x404
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x446764
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x80], 0
je 0x446764
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x80]
call fcn.00406ca0
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00408230
push 0x402
mov ecx, dword [ebp - 0x44]
call fcn.0040e48d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x44679c
push 0x12c
mov ecx, dword [ebp - 0x1c]
call fcn.00408260
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.00402f10
push eax
push 0x28
mov ecx, dword [ebp - 0x44]
call fcn.00403d40
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405030
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret