Function at 0x470cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x300
push ebx
push esi
push edi
lea eax, [esp + 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x20c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor bl, bl
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20c]
mov byte [esp + 0x20e], bl
push ecx
push str._sProgram_FilesMSN_Gaming_Zone
push edx
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x31c]
repne scasb al, byte es:[edi]
not ecx
push 0x100
lea eax, [esp + 0x1c]
dec ecx
push esi
push eax
mov edi, ecx
call fcn.0047b120
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470db0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x10c]
push eax
push str._sProgram_FilesInternet_Explorer
push ecx
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x1c]
dec ecx
push esi
push edx
mov edi, ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470e24
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
push str._sProgram_FilesNetMeeting
push eax
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov edi, ecx
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470e91
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x10c]
push ecx
push str._sProgram_FilesOutlook_Express
push edx
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x1c]
dec ecx
push esi
push eax
mov edi, ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470f05
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x10c]
push eax
push str._sProgram_FilesWindows_Media_Connect
push ecx
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x1c]
dec ecx
push esi
push edx
mov edi, ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470f72
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
push str._sProgram_FilesWindows_Media_Player
push eax
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov edi, ecx
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x470fe6
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x10c]
push ecx
push str._sProgram_FilesWindows_NT
push edx
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x1c]
dec ecx
push esi
push eax
mov edi, ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x47105a
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x10c]
push eax
push str._sProgram_FilesWindows
push ecx
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x1c]
dec ecx
push esi
push edx
mov edi, ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
test eax, eax
jne 0x4710ce
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x300
ret
lea edx, [esp + 0x20c]
lea eax, [esp + 0x10c]
push edx
push str._sProgram_Filesmicrosoft
push eax
mov byte [esp + 0x118], bl
call fcn.0047a8f8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov edi, ecx
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24], bl
call fcn.0047b120
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.0047fde0
add esp, 0x20
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x300
ret