Function at 0x41a0f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4573cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x43c], 0
mov eax, dword [0x471df4]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x448]
mov byte [esp + 0x43c], 3
call fcn.0044a88a
mov eax, dword [esp + 0x444]
push 0x46ae38
push eax
call fcn.0043af00
mov edi, eax
add esp, 8
test edi, edi
je 0x41a301
push edi
lea ecx, [esp + 0x230]
push 0x103
push ecx
call fcn.0043ae30
add esp, 0xc
test eax, eax
je 0x41a298
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x10]
push edx
call fcn.0044a511
push 0x3b
lea ecx, [esp + 0x14]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x41a1d3
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.004493ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 4
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x43c], 3
call fcn.0044a3d4
push 9
lea ecx, [esp + 0x14]
call fcn.004492e3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a4c1
lea ecx, [esp + 0x14]
call fcn.0044a88a
push str._STRINGS_
lea ecx, [esp + 0x18]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a20f
mov ebx, 1
jmp 0x41a27a
test ebx, ebx
je 0x41a271
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0044a84f
mov edx, dword [esp + 0x448]
lea ecx, [esp + 0x14]
push edx
mov esi, eax
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a24b
mov eax, dword [esp + 0x448]
lea ecx, [esp + 0x14]
push eax
call fcn.00449464
cmp eax, esi
jl 0x41a2b2
push 0x46bdc4
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a271
push 0x46bdc0
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x41a298
lea ecx, [esp + 0x10]
call fcn.0044a35f
push edi
lea ecx, [esp + 0x230]
push 0x103
push ecx
call fcn.0043ae30
add esp, 0xc
test eax, eax
jne 0x41a180
mov ebx, dword [esp + 0x44c]
push edi
call fcn.0043ad20
add esp, 4
test ebp, ebp
jne 0x41a5c6
jmp 0x41a308
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0044a84f
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.004490eb
push 0x22
lea ecx, [esp + 0x14]
call fcn.004492e3
lea ecx, [esp + 0x10]
call fcn.00449849
lea ecx, [esp + 0x10]
call fcn.004497fd
mov ebx, dword [esp + 0x44c]
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.0044a4c1
mov ebp, 1
jmp 0x41a29f
mov ebx, dword [esp + 0x44c]
lea eax, [esp + 0x128]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x330]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x46c00c
lea ecx, [esp + 0x44c]
mov ebp, 1
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a35d
lea edx, [esp + 0x128]
mov ecx, ebx
push edx
call fcn.0044a511
jmp 0x41a5c6
push 0x46c01c
lea ecx, [esp + 0x44c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a387
lea eax, [esp + 0x330]
mov ecx, ebx
push eax
call fcn.0044a511
jmp 0x41a5c6
push 0x46c014
lea ecx, [esp + 0x44c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a42b
push str.DRIVERS
lea ecx, [esp + 0x1c]
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x330]
mov byte [esp + 0x43c], 5
push ecx
lea ecx, [esp + 0x24]
call fcn.0044a442
push esi
lea edx, [esp + 0x20]
mov bl, 6
push eax
push edx
mov byte [esp + 0x448], bl
call fcn.0044a5b7
mov ecx, dword [esp + 0x44c]
push eax
mov byte [esp + 0x440], 7
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x43c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 5
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
call fcn.0044a3d4
jmp 0x41a5c6
push 0x46bff0
lea ecx, [esp + 0x44c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a4a5
lea eax, [esp + 0x128]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a511
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x41a494
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004493ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 8
call fcn.0044a4c1
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
call fcn.0044a3d4
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.0044a4c1
jmp 0x41a5c6
push str.16422
lea ecx, [esp + 0x44c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x41a4ed
lea eax, [esp + 0x24]
push 0x104
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00430370
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.0044a511
jmp 0x41a5c6
mov edx, dword [esp + 0x448]
push str.16384
push edx
call fcn.0043aac0
add esp, 8
test eax, eax
jne 0x41a5c4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x148]
test ecx, ecx
je 0x41a560
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x41a5c6
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a5c6
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
call eax
test eax, eax
jl 0x41a5c6
lea edx, [esp + 0x24]
mov ecx, ebx
push edx
call fcn.0044a511
jmp 0x41a5c6
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DESKTOP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0044a511
jmp 0x41a5c6
xor ebp, ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 2
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 1
call fcn.0044a3d4
lea ecx, [esp + 0x444]
mov byte [esp + 0x43c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x448]
mov dword [esp + 0x43c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x434]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 0xc