Function at 0x407f00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bca1
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [esp + 0x158]
call fcn.0040f911
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407f5e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x150], ebx
call fcn.0040f911
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407f8f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
push 0x104
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x158], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40801c
push str.Error_:_Get_windows_path_error_n
call fcn.00404820
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x150], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407feb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x4081ed
mov eax, dword [esp + 0x15c]
cmp eax, ebx
jbe 0x4081a1
lea ebp, [esi + 0x80]
mov dword [esp + 0x14], eax
jmp 0x408040
cmp dword [ebp + 0x148], ebx
je 0x408188
cmp dword [ebp + 0x140], 2
jne 0x408075
mov edi, str.FILTER
lea esi, [ebp - 0x40]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408075
cmp byte [0x490418], 1
je 0x408188
mov edi, 0xf
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408090
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403630
mov eax, ebp
mov byte [esp + 0x150], 2
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4080b7
sub eax, edx
je 0x4080df
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4080d0
sub eax, edx
push eax
push ebp
jmp 0x4080e6
push 0x11
push str._system32drivers
lea ecx, [esp + 0x2c]
call fcn.00403ad0
push 1
push 0x42f3dc
lea ecx, [esp + 0x2c]
call fcn.00403ad0
lea ecx, [ebp - 0x80]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408107
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00403ad0
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x408130
lea eax, [esp + 0x28]
push eax
call fcn.00401af0
add esp, 4
test al, al
jne 0x408145
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408161
cmp dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
jae 0x408153
lea eax, [esp + 0x28]
push eax
push str.Info__:_Remove_file__s__OK._n
call fcn.00404820
add esp, 8
cmp dword [esp + 0x3c], esi
mov byte [esp + 0x150], 1
jb 0x40817c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040f57f
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
add ebp, 0x1cc
sub dword [esp + 0x14], 1
jne 0x408040
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov byte [esp + 0x150], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4081c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041811d
add esp, 0x140
ret