Function at 0x41d010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4689b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
cmp dword [ebp + 8], 0
je 0x41d0e7
or eax, ecx
jge 0x41d07e
mov eax, 0x105
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
jns 0x41d2ce
push str.Failed_to_find_local_appdata_directory.
push 0x487a98
mov ebx, 0x27
mov dword [0x487aa0], eax
call fcn.00401330
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0
je 0x41d152
or eax, ecx
jge 0x41d101
mov eax, 0x105
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x20
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045013c
add esp, 8
test eax, eax
js 0x41d148
cmp eax, dword [esi - 8]
jg 0x41d148
push 4
xor ecx, ecx
mov dword [esi - 0xc], eax
push str.Low
lea ebx, [ebp - 0x10]
mov word [esi + eax*2], cx
call fcn.004249d0
mov esi, dword [ebp - 0x10]
jmp 0x41d284
push 0x80070057
call fcn.00401680
or eax, ecx
jge 0x41d166
mov eax, 0x105
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
mov dword [ebp + 8], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045013c
add esp, 8
test eax, eax
js 0x41d148
cmp eax, dword [esi - 8]
jg 0x41d148
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
lea esi, [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041ce90
mov edi, dword [ebp + 0xc]
push ecx
lea ebx, [edi - 0x10]
mov eax, ebx
mov dword [ebp - 0x14], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov ecx, 0x487980
mov dword [esi], eax
call fcn.0041c0a0
test al, al
jne 0x41d24b
lea esi, [ebp - 0x10]
call fcn.004013e0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x41d210
mov eax, 0x105
lea ecx, [ebp - 0x10]
call fcn.00401440
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
mov dword [ebp + 8], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045013c
add esp, 8
test eax, eax
js 0x41d148
cmp eax, dword [esi - 8]
jg 0x41d148
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x41d264
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, 0x487980
call fcn.0041c2e0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41d281
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov edi, dword [ebp + 8]
test edi, edi
jns 0x41d2ce
push str.Failed_to_find_local_appdata_directory.
push 0x487a98
mov ebx, 0x27
mov dword [0x487aa0], edi
call fcn.00401330
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0d1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x41d0d1
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
call fcn.00421630
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d2fc
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc