Function at 0x411db0
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47913d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov esi, 0x4810c8
mov dword [esp + 0x1c], esi
xor ebp, ebp
jmp 0x411e00
push 0x206
lea eax, [esp + 0xd2]
push ebp
push eax
mov word [esp + 0xd8], bp
call fcn.00464db0
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xff
mov dword [esp + 0x18], eax
jge 0x411ebf
push ebp
push eax
lea ecx, [esp + 0xd4]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x412088
lea eax, [esp + 0xcc]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x411e63
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x2c]
call fcn.00401890
lea edx, [esp + 0x18]
mov dword [esp + 0x2e0], ebp
call fcn.00417910
push 0xffffffffffffffff
push ebp
mov ecx, esi
push ecx
call fcn.00401790
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x412088
mov edx, dword [esp + 0x28]
push edx
jmp 0x412080
sub eax, 0x101
je 0x411fdf
sub eax, 1
je 0x411f3e
sub eax, 1
jne 0x412177
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x28
call fcn.00417910
push eax
lea esi, [esp + 0xb4]
call fcn.00409510
add esp, 4
mov esi, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x2e0], 5
call fcn.00417910
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401790
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0xc8], 8
jb 0x412088
mov eax, dword [esp + 0xb4]
push eax
jmp 0x412080
push 0xb
mov edi, 7
push str._HOMEDRIVE_
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.00401890
mov ecx, esi
lea esi, [esp + 0x78]
mov dword [esp + 0x2e0], 3
call fcn.00409c50
mov esi, eax
lea edx, [esp + 0x18]
mov byte [esp + 0x2e0], 4
call fcn.00417910
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401790
mov esi, 8
cmp dword [esp + 0x90], esi
jb 0x411fad
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0046207a
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], bp
jb 0x412088
mov edx, dword [esp + 0x28]
push edx
jmp 0x412080
push 0x11
mov edi, 7
push str._ALLUSERSPROFILE_
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
call fcn.00401890
mov ecx, esi
lea esi, [esp + 0x94]
mov dword [esp + 0x2e0], 1
call fcn.00409c50
mov esi, eax
lea edx, [esp + 0x18]
mov byte [esp + 0x2e0], 2
call fcn.00417910
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401790
mov esi, 8
cmp dword [esp + 0xac], esi
jb 0x412054
mov eax, dword [esp + 0x98]
push eax
call fcn.0046207a
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x58], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], bp
jb 0x412088
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0046207a
add esp, 4
lea edx, [esp + 0x18]
call fcn.00417910
mov edi, eax
push edi
call fcn.00406f80
add esp, 4
cmp dword [edi + 0x14], 2
jb 0x41213c
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x4120b3
mov eax, dword [esi]
jmp 0x4120b5
mov eax, esi
cmp word [eax], 0x22
jne 0x41213c
mov eax, dword [edi + 0x14]
lea ebx, [eax - 1]
cmp ebx, eax
jbe 0x4120ce
call fcn.004625df
cmp dword [edi + 0x18], 8
jb 0x4120d6
mov esi, dword [esi]
cmp word [esi + ebx*2], 0x22
jne 0x41213c
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x5c]
push edi
add eax, 0xfffffffe
push edx
mov ecx, 1
call fcn.00407050
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
mov eax, edi
mov dword [esp + 0x2ec], 6
call fcn.00401790
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x74], 8
jb 0x41212b
mov eax, dword [esp + 0x60]
push eax
call fcn.0046207a
add esp, 4
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
push 0x47d494
mov eax, edi
call fcn.00406ea0
add esp, 4
push 0x5c
push 0x5c
call fcn.00406dd0
push 0x5c
push 0x2f
call fcn.00406dd0
mov esi, dword [esp + 0x2c]
add esi, 4
add esp, 0x10
cmp esi, str._ALLUSERSPROFILE_
mov dword [esp + 0x1c], esi
jl 0x411e00
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00461f6b
add esp, 0x2d0
ret