Function at 0x416e70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456cd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
xor ebp, ebp
mov dword [esp + 0x53c], ebp
lea eax, [esp + 0x430]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x124]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [0x471df4]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x54c]
mov ebx, 3
push 0x46c01c
push eax
mov byte [esp + 0x544], bl
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x41738d
push 0x46c018
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x41738d
mov ecx, dword [esp + 0x54c]
push 0x46c014
push ecx
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x417358
push 0x46c010
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x417358
mov edx, dword [esp + 0x54c]
push 0x46c00c
push edx
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x417318
push 0x46c008
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x417318
mov eax, dword [esp + 0x54c]
push 0x46c004
push eax
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x4172c6
push 0x46c000
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4172c6
mov ecx, dword [esp + 0x54c]
push 0x46bffc
push ecx
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x417287
push str.CAT_
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x417287
mov edx, dword [esp + 0x54c]
push 0x46bff0
push edx
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x417228
push 0x46bfec
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x417228
mov eax, dword [esp + 0x54c]
push str.16422
push eax
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x4171f8
push str.16422_
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4171f8
mov ecx, dword [esp + 0x54c]
push str.16384
push ecx
call fcn.0043aac0
add esp, 8
test eax, eax
je 0x417162
push str.16384_
lea ecx, [esp + 0x550]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x417162
lea edx, [esp + 0x228]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x228]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a511
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00449442
cmp eax, 0xffffffff
je 0x417112
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004493ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 5
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], bl
call fcn.0044a3d4
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x550]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x417433
inc eax
lea ecx, [esp + 0x54c]
push eax
push 0
call fcn.004490eb
jmp 0x417404
cmp dword [esi + 0x148], ebp
je 0x4171c3
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
je 0x41754c
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x41754c
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebp
push ebp
push ebp
call eax
test eax, eax
jl 0x41754c
push 0x2c
lea ecx, [esp + 0x550]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x417433
inc eax
push eax
push ebp
jmp 0x4173cb
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.DESKTOP
jmp 0x41740f
lea eax, [esp + 0x32c]
push 0x104
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00430370
add esp, 0x14
lea edi, [esp + 0x32c]
jmp 0x41731f
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a511
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x41727a
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004493ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 4
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], bl
call fcn.0044a3d4
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x20]
jmp 0x417323
mov eax, dword [esi + 0x148]
lea edi, [esp + 0x124]
cmp eax, ebp
lea edx, [esp + 0x20]
je 0x4172d1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE
jmp 0x41740f
lea edi, [esp + 0x124]
lea edx, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.INF
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
jmp 0x41733b
lea edi, [esp + 0x124]
lea edx, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
push 0x2c
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x550]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x417433
jmp 0x4173c7
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.SYSTEM32DRIVERS
jmp 0x41740f
lea edi, [esp + 0x430]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x550]
call fcn.0044a84f
cmp eax, 0xffffffff
je 0x417433
inc eax
push eax
push 0
lea ecx, [esp + 0x554]
call fcn.004490eb
mov edi, 0x46a404
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x54c]
lea edx, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov ebp, 1
call fcn.0044a511
lea ecx, [esp + 0x10]
lea edx, [esp + 0x544]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0044a149
mov ecx, dword [esp + 0x20]
call fcn.0041a630
push 0x22
lea ecx, [esp + 0x14]
call fcn.004492e3
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46a404
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 edx, [esp + 0x20]
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x548]
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 eax, dword [0x471df4]
mov ecx, edx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x53c], 6
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a511
lea ecx, [esp + 0x14]
call fcn.0044a88a
lea ecx, [esp + 0x14]
call fcn.00449849
lea ecx, [esp + 0x14]
call fcn.004497fd
mov ecx, dword [esp + 0x550]
lea edx, [esp + 0x14]
push edx
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 2
call fcn.0044a3d4
lea ecx, [esp + 0x544]
mov byte [esp + 0x53c], 1
call fcn.0044a3d4
lea ecx, [esp + 0x548]
mov byte [esp + 0x53c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x54c]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x534]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x530
ret 0x10