Function at 0x50ac90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1a0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x568540
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, 0x43
mov eax, ecx
mov esi, edi
mov edi, edx
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]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0xac0bb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], bl
mov dword [eax], 0x2e
nop
nop
nop
nop
nop
nop
or ecx, 0xffffffff
lea edi, [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x568538
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 + 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb0]
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, 0x568094
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 + 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SpideyPC.exe
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 + 0xb0]
and ecx, 3
push 0x567fec
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0052a9e3
add esp, 8
test eax, eax
jmp 0x50adfe
push eax
call fcn.0052a7fc
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
push 0xac0bb0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.CDPATH:__s_r_n
mov edx, ecx
mov esi, edi
mov edi, 0xac0bb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004015b0
add esp, 0xc
jmp 0x50ae4e
push 0xac0cb0
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
mov edi, 0xac0cb0
xor eax, eax
lea edx, [esp + 0xb0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x567fec
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
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, 0x568094
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xb4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Media.pkr
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xb4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0052a9e3
add esp, 8
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x50af1b
push eax
call fcn.0052a7fc
add esp, 4
mov byte [0xac0eb0], 1
add esp, 0x1a0
ret
mov byte [0xac0eb0], 0
add esp, 0x1a0
ret