Function at 0x41e360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x7c4
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x7c0], eax
mov eax, dword [str.LowerFilters]
mov ecx, dword [0x599a2c]
mov edx, dword [0x599a30]
push ebx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov al, byte [0x599a34]
push ebp
mov ebp, dword [esp + 0x7d0]
mov byte [esp + 0x30], al
xor eax, eax
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
mov dword [ebp + 0x180008], ebx
mov dword [ebp + 0x100004], ebx
mov dword [esp + 0x14], ebx
lea ebx, [ebx]
cmp dword [esp + 0x14], 1
jne 0x41e40e
mov ecx, dword [str.UpperFilters]
mov edx, dword [0x599a1c]
mov eax, dword [0x599a20]
mov dword [esp + 0x2c], ecx
mov cl, byte [0x599a24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], cl
mov ecx, 0x13
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x3d0]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x3dc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e6ea
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1cc]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004049e0
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x41e477
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x10], eax
cmp edi, 0xffff
je 0x41e6db
lea ecx, [esp + edi + 0x1cc]
lea edx, [ebp + 0x18000c]
mov ebx, ebp
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x4c]
sub ebx, eax
lea edx, [esp + 0x14c]
sub edi, ecx
sub ebp, edx
mov eax, ecx
add ebx, 0x100108
add edi, 0x100088
add ebp, 0x100188
sub eax, 0x80
lea esi, [esp + 0x1cc]
mov dword [esp + 0x24], eax
jmp 0x41e4e0
push esi
lea eax, [esp + 0x3d4]
push str.SYSTEMCurrentControlSetServices_s
push eax
call fcn.00540420
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
lea edx, [esp + 0x3dc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e684
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3d0]
push eax
push ecx
push str.ImagePath
call fcn.004049e0
add esp, 0xc
cmp eax, 0xffff
jne 0x41e56c
push 0x104
lea edx, [esp + 0x2d0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [esp + 0x2d0]
push eax
lea ecx, [esp + 0x3d8]
push str._sdrivers_s.sys
push ecx
call fcn.00540420
add esp, 0x10
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x3dc]
push edx
call fcn.0042a300
add esp, 0x10
test byte [esp + 0x14], 1
mov eax, esi
je 0x41e60d
mov edx, dword [esp + 0x18]
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41e5a0
lea eax, [esp + 0x14c]
mov cl, byte [eax]
mov byte [eax + ebp + 0x80004], cl
add eax, 1
test cl, cl
jne 0x41e5b3
lea eax, [esp + 0x4c]
jmp 0x41e5d0
mov cl, byte [eax]
mov byte [edi + eax + 0x80004], cl
add eax, 1
test cl, cl
jne 0x41e5d0
lea eax, [esp + 0xcc]
jmp 0x41e5f0
mov cl, byte [eax]
mov byte [ebx + eax + 0x80004], cl
add eax, 1
test cl, cl
jne 0x41e5f0
mov eax, dword [esp + 0x1c]
add dword [eax + 0x180008], 1
jmp 0x41e66a
mov ecx, dword [esp + 0x24]
sub ecx, esi
lea edx, [ecx + edi]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41e616
lea eax, [esp + 0x14c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x41e630
lea eax, [esp + 0x4c]
mov cl, byte [eax]
mov byte [edi + eax], cl
add eax, 1
test cl, cl
jne 0x41e640
lea eax, [esp + 0xcc]
mov cl, byte [eax]
mov byte [ebx + eax], cl
add eax, 1
test cl, cl
jne 0x41e653
mov eax, dword [esp + 0x1c]
add dword [eax + 0x100004], 1
add dword [esp + 0x18], 0x200
add ebp, 0x200
add edi, 0x200
add ebx, 0x200
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e690
sub eax, edx
add esi, eax
cmp byte [esi], cl
jne 0x41e6af
cmp esi, dword [esp + 0x20]
jae 0x41e6d1
add esi, 1
cmp byte [esi], 0
je 0x41e6a1
cmp esi, dword [esp + 0x20]
jae 0x41e6d1
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e6c0
sub eax, edx
jne 0x41e4e0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x41e6ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x41e3e0
mov ecx, dword [esp + 0x7d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fab2
add esp, 0x7c4
ret