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

Disassembly:
push 0xffffffffffffffff
push 0x41b274
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
mov dword [esp + 0x28], ecx
push edi
push str.C:Documents_and_Settings
lea ecx, [esp + 0x54]
call fcn.00412996
xor ebp, ebp
push str.D:Documents_and_Settings
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc0], ebp
call fcn.00412996
push 0x4222bc
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 1
call fcn.00412996
mov eax, dword [0x4224a8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x5c]
push ebp
push ecx
mov byte [esp + 0xc4], 3
call fcn.0040505a
add esp, 8
cmp eax, 0xffffffff
je 0x401c10
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
push edx
call fcn.00412a69
mov eax, dword [esp + 0x58]
push ebp
push eax
call fcn.0040505a
add esp, 8
cmp eax, 0xffffffff
je 0x401c31
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x24]
call fcn.00412a69
mov edx, dword [esp + 0x50]
push ebp
push edx
call fcn.0040505a
add esp, 8
cmp eax, 0xffffffff
je 0x401c52
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
push eax
call fcn.00412a69
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 8], 3
jge 0x401cad
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 2
call fcn.00412922
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 1
call fcn.00412922
lea ecx, [esp + 0x58]
mov byte [esp + 0xbc], 0
call fcn.00412922
lea ecx, [esp + 0x50]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00412922
mov eax, 0xfffffffd
jmp 0x402809
mov edx, dword [0x4224a8]
mov dword [esp + 0x30], edx
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x30]
push eax
push 0x14
mov byte [esp + 0xc4], 4
mov dword [esp + 0xb0], 0x14
call fcn.00412db9
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call fcn.00412d90
lea ecx, [esp + 0x20]
push 0x4222b8
lea edx, [esp + 0xb4]
push ecx
push edx
call fcn.00412bc7
lea ecx, [esp + 0x30]
lea edx, [esp + 0xac]
push ecx
push eax
push edx
mov byte [esp + 0xc8], 5
call fcn.00412b61
push 0x422294
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0xc4], 6
push eax
call fcn.00412bc7
lea ecx, [esp + 0xac]
mov byte [esp + 0xbc], 9
call fcn.00412922
lea ecx, [esp + 0xb0]
mov byte [esp + 0xbc], 8
call fcn.00412922
lea ecx, [esp + 0x20]
push 0x42225c
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00412bc7
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0xa
call fcn.00411a44
mov eax, dword [0x4224a8]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 0xc
call fcn.00404240
lea ecx, [esp + 0x54]
push 0x422258
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0xc8], 0xd
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0xe
call fcn.00404305
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0xbc], 0xd
call fcn.00412922
cmp esi, ebp
je 0x401e80
mov bl, 0xf
lea ecx, [esp + 0x34]
call fcn.0040452b
mov esi, eax
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x38]
cmp eax, ebp
je 0x401e78
lea ecx, [esp + 0x34]
call fcn.004044ee
test eax, eax
jne 0x401e78
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.004045fa
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xc0], bl
call fcn.004045fa
push eax
mov eax, dword [esp + 0x84]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0xc4], 0x10
call fcn.00411c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 0xd
call fcn.00412922
cmp esi, ebp
jne 0x401dee
lea ecx, [esp + 0x64]
call fcn.00411a44
mov eax, dword [esp + 0x80]
xor edi, edi
cmp eax, ebp
mov byte [esp + 0xbc], 0x11
jle 0x401f96
mov bl, 0x12
lea ecx, [esp + 0x1c]
push edi
push ecx
lea ecx, [esp + 0x80]
call fcn.00402da0
push 0x422250
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0xc8], bl
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0x13
call fcn.00404305
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 0x11
call fcn.00412922
cmp esi, ebp
je 0x401f86
lea ecx, [esp + 0x34]
call fcn.0040452b
mov esi, eax
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x38]
cmp eax, ebp
jne 0x401f82
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.004045fa
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xc0], 0x14
call fcn.004045fa
push eax
mov eax, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc4], 0x15
call fcn.00411c20
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 0x14
call fcn.00412922
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x11
call fcn.00412922
cmp esi, ebp
jne 0x401f09
mov eax, dword [esp + 0x80]
inc edi
cmp edi, eax
jl 0x401ea4
mov eax, dword [esp + 0x6c]
xor esi, esi
cmp eax, ebp
jle 0x402039
mov bl, 0x16
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
push ecx
lea ecx, [esp + 0x70]
call fcn.00402da0
lea ecx, [esp + 0x90]
call fcn.00403b20
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], bl
call fcn.00403d60
test eax, eax
je 0x402018
lea edx, [esp + 0x10]
lea ecx, [esp + 0x8c]
push edx
call fcn.00403d40
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 0xa68
mov byte [esp + 0xc0], 0x17
mov edx, dword [ecx + 8]
push edx
call fcn.00411c20
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], 0x11
call fcn.00403cc0
mov eax, dword [esp + 0x6c]
inc esi
cmp esi, eax
jl 0x401fa6
mov edx, dword [0x4224a8]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x20]
push 0x4222b8
lea ecx, [esp + 0x2c]
mov bl, 0x18
push eax
push ecx
mov byte [esp + 0xc8], bl
call fcn.00412bc7
lea edx, [esp + 0x30]
mov byte [esp + 0xbc], 0x19
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00412b61
push 0x422244
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0xc8], 0x1a
call fcn.00412bc7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 0x1b
call fcn.00412a69
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x1a
call fcn.00412922
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 0x19
call fcn.00412922
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea edx, [esp + 0x18]
push str..lnk
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0x1c
call fcn.00404305
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xbc], bl
call fcn.00412922
cmp esi, ebp
je 0x4021b0
lea ecx, [esp + 0x34]
call fcn.0040452b
push ecx
mov esi, eax
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
lea ecx, [esp + 0x3c]
call fcn.004045fa
lea ecx, [esp + 0x90]
call fcn.00403b20
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], 0x1d
call fcn.00403d60
test eax, eax
je 0x402195
lea edx, [esp + 0x10]
lea ecx, [esp + 0x8c]
push edx
call fcn.00403d40
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 0xa68
mov byte [esp + 0xc0], 0x1e
mov edx, dword [ecx + 8]
push edx
call fcn.00411c20
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x1d
call fcn.00412922
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], bl
call fcn.00403cc0
cmp esi, ebp
jne 0x402117
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 0x11
call fcn.00412922
lea ecx, [esp + 0x64]
mov byte [esp + 0xbc], 0xd
call fcn.00411a77
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 0xc
call fcn.0040427f
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 0xb
call fcn.00412922
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0xa
call fcn.00411a77
push str.All_Users
lea ecx, [esp + 0x34]
call fcn.00412ab9
lea edx, [esp + 0x60]
lea ecx, [esp + 0x54]
push edx
call fcn.00412a69
lea ecx, [esp + 0x64]
call fcn.00411a44
mov eax, dword [0x4224a8]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 0x20
call fcn.00404240
lea ecx, [esp + 0x54]
push 0x422258
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0xc8], 0x21
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0x22
call fcn.00404305
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xbc], 0x21
call fcn.00412922
cmp esi, ebp
je 0x40231e
mov bl, 0x23
lea ecx, [esp + 0x34]
call fcn.0040452b
mov esi, eax
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x38]
cmp eax, ebp
je 0x402316
lea ecx, [esp + 0x34]
call fcn.004044ee
test eax, eax
jne 0x402316
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call fcn.004045fa
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xc0], bl
call fcn.004045fa
push eax
mov eax, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc4], 0x24
call fcn.00411c20
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x21
call fcn.00412922
cmp esi, ebp
jne 0x402292
lea ecx, [esp + 0x78]
call fcn.00411a44
mov eax, dword [esp + 0x6c]
xor edi, edi
cmp eax, ebp
mov byte [esp + 0xbc], 0x25
jle 0x402439
mov bl, 0x26
lea ecx, [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x6c]
call fcn.00402da0
push 0x422250
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0xc8], bl
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0x27
call fcn.00404305
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x25
call fcn.00412922
cmp esi, ebp
je 0x40242c
lea ecx, [esp + 0x34]
call fcn.0040452b
mov esi, eax
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x38]
cmp eax, ebp
jne 0x402424
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.004045fa
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xc0], 0x28
call fcn.004045fa
push eax
mov eax, dword [esp + 0x84]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0xc4], 0x29
call fcn.00411c20
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 0x28
call fcn.00412922
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 0x25
call fcn.00412922
cmp esi, ebp
jne 0x4023a5
mov eax, dword [esp + 0x6c]
inc edi
cmp edi, eax
jl 0x40233f
mov eax, dword [esp + 0x80]
xor esi, esi
cmp eax, ebp
jle 0x4024e5
mov bl, 0x2a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
push ecx
lea ecx, [esp + 0x84]
call fcn.00402da0
lea ecx, [esp + 0x90]
call fcn.00403b20
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], bl
call fcn.00403d60
test eax, eax
je 0x4024c1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x8c]
push edx
call fcn.00403d40
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 0xa68
mov byte [esp + 0xc0], 0x2b
mov edx, dword [ecx + 8]
push edx
call fcn.00411c20
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], 0x25
call fcn.00403cc0
mov eax, dword [esp + 0x80]
inc esi
cmp esi, eax
jl 0x40244c
mov edx, dword [0x4224a8]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x20]
push 0x4222b8
lea ecx, [esp + 0x28]
mov bl, 0x2c
push eax
push ecx
mov byte [esp + 0xc8], bl
call fcn.00412bc7
lea edx, [esp + 0x30]
mov byte [esp + 0xbc], 0x2d
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00412b61
push 0x422244
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0xc8], 0x2e
call fcn.00412bc7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 0x2f
call fcn.00412a69
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 0x2e
call fcn.00412922
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x2d
call fcn.00412922
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], bl
call fcn.00412922
lea edx, [esp + 0x18]
push str..lnk
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00412bc7
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 0x30
call fcn.00404305
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0xbc], bl
call fcn.00412922
cmp esi, ebp
je 0x40265c
lea ecx, [esp + 0x34]
call fcn.0040452b
push ecx
mov esi, eax
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x3c]
call fcn.004045fa
lea ecx, [esp + 0x90]
call fcn.00403b20
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], 0x31
call fcn.00403d60
test eax, eax
je 0x402641
lea edx, [esp + 0x14]
lea ecx, [esp + 0x8c]
push edx
call fcn.00403d40
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 0xa68
mov byte [esp + 0xc0], 0x32
mov edx, dword [ecx + 8]
push edx
call fcn.00411c20
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 0x31
call fcn.00412922
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbc], bl
call fcn.00403cc0
cmp esi, ebp
jne 0x4025c3
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 0x25
call fcn.00412922
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0x21
call fcn.00411a77
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 0x20
call fcn.0040427f
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 0x1f
call fcn.00412922
lea ecx, [esp + 0x64]
mov byte [esp + 0xbc], 0xa
call fcn.00411a77
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0xa70]
test eax, eax
jle 0x402787
lea edi, [ebx + 0xa68]
lea edx, [esp + 0x1c]
push ebp
push edx
mov ecx, edi
call fcn.00402da0
mov eax, dword [ebx + 0xa70]
xor esi, esi
test eax, eax
mov byte [esp + 0xbc], 0x33
mov dword [esp + 0x18], esi
jle 0x402767
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, edi
call fcn.00402da0
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
mov byte [esp + 0xc4], 0x34
call fcn.00402da0
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.004053e0
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.00412922
test bl, bl
je 0x402736
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 1
jle 0x402747
push 1
push esi
mov ecx, edi
call fcn.00411c4c
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 0x33
call fcn.00412922
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, dword [eax + 0xa70]
jl 0x4026ee
mov ebx, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 0xa
call fcn.00412922
mov eax, dword [ebx + 0xa70]
inc ebp
cmp ebp, eax
jl 0x4026c9
mov esi, dword [ebx + 0xa70]
lea ecx, [esp + 0x60]
mov byte [esp + 0xbc], 8
call fcn.00412922
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 4
call fcn.00412922
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 3
call fcn.00412922
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 2
call fcn.00412922
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 1
call fcn.00412922
lea ecx, [esp + 0x58]
mov byte [esp + 0xbc], 0
call fcn.00412922
lea ecx, [esp + 0x50]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00412922
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret