Function at 0x418db0
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x46d486
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
lea ecx, [esp + 0x10]
call fcn.00417560
mov eax, dword [esp + 0x4a0]
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x498], ebx
call fcn.00418210
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.00418410
lea ecx, [esp + 0x10]
call fcn.00417690
test eax, eax
jne 0x418e36
lea ecx, [esp + 0x10]
mov dword [esp + 0x494], 0xffffffff
call fcn.00417620
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
add esp, 0x494
ret
push esi
push edi
lea ecx, [esp + 0x78]
call fcn.00446730
lea ecx, [esp + 0x18]
mov byte [esp + 0x49c], 1
call fcn.00417ae0
test al, al
jne 0x418f27
lea ecx, [esp + 0x78]
call fcn.00446780
test al, al
jne 0x418f27
mov edi, dword [esp + 0x4ac]
lea ecx, [esp + 0x14]
push edi
push ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x38]
call fcn.00417970
push eax
push 0x7d1
call fcn.0043cbd0
mov esi, eax
add esp, 0x28
cmp esi, 0xffffffff
jne 0x418fd3
lea edx, [esp + 0x10]
push edi
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00419350
add esp, 0x10
cmp al, bl
je 0x418fd3
mov eax, dword [esp + 0xc]
test al, 1
je 0x418fd3
and al, 0xfe
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x14], eax
call fcn.00419f80
add esp, 8
cmp al, bl
je 0x418fd3
lea eax, [esp + 0x14]
push edi
push eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x38]
call fcn.00417970
push eax
push 0x7d1
call fcn.0043cbd0
jmp 0x418fce
mov edi, dword [esp + 0x4ac]
lea ecx, [esp + 0x14]
push edi
push ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x38]
call fcn.00417cf0
push eax
push 0x7d0
call fcn.0043ca60
mov esi, eax
add esp, 0x28
cmp esi, 0xffffffff
jne 0x418fd3
lea edx, [esp + 0x10]
push edi
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00419350
add esp, 0x10
cmp al, bl
je 0x418fd3
mov eax, dword [esp + 0xc]
test al, 1
je 0x418fd3
and al, 0xfe
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x14], eax
call fcn.00419f80
add esp, 8
cmp al, bl
je 0x418fd3
lea eax, [esp + 0x14]
push edi
push eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x38]
call fcn.00417cf0
push eax
push 0x83f
call fcn.0043ca60
add esp, 0x28
mov esi, eax
cmp edi, ebx
je 0x41904a
cmp esi, 0xffffffff
jne 0x41904a
lea ecx, [esp + 0x2a0]
push ebp
push ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [edi]
lea eax, [esp + 0x2a4]
push eax
push str.CurrentDir
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x114]
push ecx
push edx
mov dword [esp + 0x1c], 0x190
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [edi]
lea ecx, [esp + 0x114]
push ecx
push str.LoggedOnUser
mov ecx, edi
call dword [eax + 0x28]
mov ebp, dword [edi]
lea ecx, [esp + 0x1c]
call fcn.00417fe0
push eax
push str.Filename
mov ecx, edi
call dword [ebp + 0x28]
pop ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0x49c], bl
call fcn.00446770
lea ecx, [esp + 0x18]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00417620
mov ecx, dword [esp + 0x494]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x494
ret