Function at 0x461bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb84
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x810]
push 0x80
push eax
mov dword [ebp - 4], 0
call ebx
lea ecx, [ebp - 0x810]
lea edx, [ebp - 0x790]
push ecx
push str._s_system32drivers
push edx
call fcn.004f175f
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
lea esi, [ebp - 0x210]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 8], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
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, [ebp - 0x210]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jge 0x461c8d
push edx
lea ecx, [ebp - 0x210]
push 0x515880
push ecx
call fcn.004f175f
lea edx, [ebp - 0x210]
push edx
call fcn.004fa6c0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push str.svchost__k_DcomLaunch
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x461cc3
push str._Microsoft_Corp
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
push str._SystemRoot__system32_svchost__k_rpcss
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x461cf9
push str.Microsoft_Corp
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x210]
push str._SystemRoot_
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x461dbc
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
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, [ebp - 0x290]
push ecx
call ebx
lea edi, [ebp - 0x290]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x210]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x290]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x410]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esi - 0xc]
cmp eax, ecx
jge 0x461db2
mov bl, byte [ebp + eax - 0x404]
lea ecx, [eax + edx]
inc eax
mov byte [ebp + ecx - 0x210], bl
jmp 0x461d97
add esi, edx
mov byte [ebp + esi - 0x21c], 0
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x2e
test ecx, ecx
jle 0x461dde
cmp byte [ebp + ecx - 0x210], al
je 0x461dde
dec ecx
jmp 0x461dce
mov byte [ebp + ecx - 0x20c], 0
mov al, byte [ebp - 0x20f]
mov bl, 0x3a
cmp al, bl
je 0x462025
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x461e2d
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x210]
cmp dl, 0x5c
mov byte [ebp + eax - 0x610], dl
jne 0x461e2a
cmp eax, 2
jge 0x461e2d
inc eax
jmp 0x461e0a
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x461e48
mov cl, byte [ebp + edx - 0x210]
mov byte [ebp + edx - 0xa10], cl
inc edx
jmp 0x461e33
mov byte [ebp + edi - 0xa10], 0
xor esi, esi
cmp esi, eax
jge 0x461e79
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x20f]
cmp dl, 0x5c
je 0x461e6e
mov byte [ebp + esi - 0x610], dl
jne 0x461e76
mov byte [ebp + esi - 0x610], 0
inc esi
jmp 0x461e52
mov byte [ebp + eax - 0x610], 0
lea edi, [ebp - 0x610]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x611]
mov cl, byte [ebp + ecx - 0x611]
cmp cl, 0x22
jne 0x461ea7
mov byte [eax], 0
lea edi, [ebp - 0xa10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp eax, esi
jge 0x461ec9
cmp byte [ebp + eax - 0xa10], bl
je 0x461ec9
inc eax
jmp 0x461eb9
xor edx, edx
mov ecx, esi
sub ecx, eax
inc ecx
cmp edx, ecx
jge 0x461ee8
lea ecx, [edx + eax]
inc edx
mov cl, byte [ebp + ecx - 0xa11]
mov byte [ebp + edx - 0x711], cl
jmp 0x461ecb
mov edx, esi
sub edx, eax
cmp eax, esi
mov byte [ebp + edx - 0x70f], 0
jne 0x461fc1
lea eax, [ebp - 0x290]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0xa90]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str..Sys
mov eax, ecx
mov esi, edi
mov edi, edx
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, [ebp - 0x410]
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x461fa6
lea edx, [ebp - 0x410]
push 0x5219e0
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x461fa6
lea eax, [ebp - 0x410]
push str..SYS
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x461fa6
lea ecx, [ebp - 0x290]
lea edx, [ebp - 0x710]
push ecx
push 0x50d39c
push edx
jmp 0x461fb9
lea eax, [ebp - 0x790]
lea ecx, [ebp - 0x710]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
add esp, 0xc
lea edx, [ebp - 0x610]
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x710]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0xb90]
push eax
push str._s_s
push ecx
call fcn.004f175f
lea edi, [ebp - 0xb90]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x210]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 4], 0
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, [ebp - 0x210]
push ecx
call fcn.004abe70
add esp, 4
cmp eax, 1
je 0x462057
push 0x516500
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x5219cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x310]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x210]
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, [ebp - 0x310]
push ecx
push edx
call fcn.004d9590
lea edi, [ebp - 0x210]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4620c8
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x210]
cmp dl, 0x5c
mov byte [ebp + eax - 0x610], dl
jne 0x4620c5
cmp eax, 2
jge 0x4620c8
inc eax
jmp 0x4620a5
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x4620e3
mov cl, byte [ebp + edx - 0x210]
mov byte [ebp + edx - 0xa10], cl
inc edx
jmp 0x4620ce
mov byte [ebp + edi - 0xa10], 0
xor esi, esi
cmp esi, eax
jge 0x462114
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x20f]
cmp dl, 0x5c
je 0x462109
mov byte [ebp + esi - 0x610], dl
jne 0x462111
mov byte [ebp + esi - 0x610], 0
inc esi
jmp 0x4620ed
mov byte [ebp + eax - 0x610], 0
lea eax, [ebp - 0x210]
push eax
call fcn.004bd410
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x310]
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, [ebp - 0x310]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret