Function at 0x4db090
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.004f175f
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.004f27c0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db150
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.004f175f
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.004f27c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db1c4
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.004f175f
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.004f27c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db231
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.004f175f
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.004f27c0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db2a5
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.004f175f
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.004f27c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db312
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.004f175f
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.004f27c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db386
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.004f175f
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.004f27c0
lea ecx, [esp + 0x24]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db3fa
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.004f175f
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.004f27c0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x124]
push eax
push ecx
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
test eax, eax
jne 0x4db46e
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.004f175f
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.004f27c0
lea edx, [esp + 0x24]
lea eax, [esp + 0x124]
push edx
push eax
mov byte [esp + edi + 0x2c], bl
call fcn.004f61e0
add esp, 0x20
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x300
ret