Function at 0x411f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x66f948
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa60], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xa64], ecx
xor ebx, ebx
mov byte [ebp - 0x224], bl
push 0x103
push ebx
lea edx, [ebp - 0x223]
push edx
call fcn.005dfd60
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.005dfd60
mov byte [ebp - 0x328], bl
push 0x103
push ebx
lea ecx, [ebp - 0x327]
push ecx
call fcn.005dfd60
mov byte [ebp - 0x83c], bl
push 0x207
push ebx
lea edx, [ebp - 0x83b]
push edx
call fcn.005dfd60
mov byte [ebp - 0xa44], bl
push 0x207
push ebx
lea eax, [ebp - 0xa43]
push eax
call fcn.005dfd60
add esp, 0x3c
mov dword [ebp - 0xa54], ebx
mov dword [ebp - 0xa50], ebx
mov dword [ebp - 0xa48], ebx
mov dword [ebp - 0xa58], ebx
call fcn.004d9b00
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 4], ebx
call fcn.004d96c0
mov dword [ebp - 0xa68], eax
push 0x104
lea ecx, [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x42c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea ecx, [ebp - 0x42c]
push ecx
call fcn.004e24e0
add esp, 4
push str.drivers_avc3.sys
lea edx, [ebp - 0x42c]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x530]
push ecx
call esi
lea edx, [ebp - 0x530]
push edx
call fcn.004e24e0
add esp, 4
push str.drivers_avckf.sys
lea eax, [ebp - 0x530]
push eax
call edi
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x224]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4120d0
cmp dword [ebp - 0xa68], ebx
je 0x4121ae
lea ecx, [ebp - 0xa50]
push ecx
call fcn.004f77e0
mov edi, eax
mov dword [ebp - 0xa54], edi
push 1
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x42c]
push edx
call fcn.004e8950
mov esi, eax
mov dword [ebp - 0xa6c], esi
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x530]
push eax
call fcn.004e8950
add esp, 0x34
mov dword [ebp - 0xa5c], eax
cmp dword [ebp - 0xa4c], ebx
je 0x412177
lea ecx, [ebp - 0x224]
push ecx
push str._sAVC64_Win10_
lea edx, [ebp - 0x120]
push edx
call fcn.005dfb23
lea eax, [ebp - 0x120]
push eax
call fcn.004ec720
add esp, 0x10
test eax, eax
jne 0x412192
lea ecx, [ebp - 0x224]
push ecx
push str._sAVC64_
lea edx, [ebp - 0x120]
push edx
jmp 0x41218a
lea eax, [ebp - 0x224]
push eax
push str._sAVC64_
lea ecx, [ebp - 0x120]
push ecx
call fcn.005dfb23
add esp, 0xc
cmp edi, ebx
je 0x412246
mov edx, dword [ebp - 0xa50]
push edx
call fcn.004f7860
add esp, 4
jmp 0x412246
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004e8950
mov esi, eax
mov dword [ebp - 0xa6c], esi
push 1
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x530]
push ecx
call fcn.004e8950
add esp, 0x30
mov dword [ebp - 0xa5c], eax
cmp dword [ebp - 0xa4c], ebx
je 0x41222b
lea edx, [ebp - 0x224]
push edx
push str._sAVC32_Win10_
lea eax, [ebp - 0x120]
push eax
call fcn.005dfb23
lea ecx, [ebp - 0x120]
push ecx
call fcn.004ec720
add esp, 0x10
test eax, eax
jne 0x412246
lea edx, [ebp - 0x224]
push edx
push str._sAVC32_
lea eax, [ebp - 0x120]
push eax
jmp 0x41223e
lea ecx, [ebp - 0x224]
push ecx
push str._sAVC32_
lea edx, [ebp - 0x120]
push edx
call fcn.005dfb23
add esp, 0xc
push 0x104
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4124c5
mov edi, dword [ebp - 0xa48]
cmp edi, ebx
jne 0x4122ad
cmp esi, ebx
jne 0x41229d
cmp dword [ebp - 0xa5c], ebx
jne 0x41229d
cmp edi, ebx
jne 0x4122ad
push str.avc3
call fcn.005110b0
test eax, eax
je 0x41229d
push str.avckf
call fcn.005110b0
test eax, eax
jne 0x4122ad
mov dword [ebp - 0xa48], 1
mov edi, dword [ebp - 0xa48]
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 0xa68], ebx
je 0x4122d7
lea eax, [ebp - 0xa50]
push eax
call fcn.004f77e0
add esp, 4
mov dword [ebp - 0xa54], eax
push 0x208
lea ecx, [ebp - 0x83c]
push ecx
lea edx, [ebp - 0x328]
push edx
call fcn.004e82a0
add esp, 0xc
cmp edi, ebx
jne 0x41230c
push str.avc3
call fcn.005110b0
test eax, eax
je 0x41230c
cmp esi, ebx
je 0x4123ba
lea eax, [ebp - 0x83c]
push eax
push str._AVCI__Re_installing_AVC3.SYS_from__s
mov ecx, dword [ebp - 0xa60]
push ecx
call fcn.004f0f30
add esp, 0xc
mov esi, dword [ebp - 0xa64]
cmp esi, ebx
je 0x412346
lea edx, [ebp - 0x83c]
push edx
push str._AVCI__Re_installing_AVC3.SYS_from__s
push esi
call fcn.004f0f30
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push str.rundll32.exe_setupapi.dll_InstallHinfSection_DefaultInstall_128__savc3.inf
lea ecx, [ebp - 0xa44]
push ecx
call fcn.005dfb23
push 1
lea edx, [ebp - 0xa44]
push edx
call fcn.0050cdf0
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004e8950
add esp, 0x2c
test eax, eax
jne 0x41238d
cmp dword [ebp - 0xa4c], ebx
je 0x4123ae
push str.drivers
lea ecx, [ebp - 0x634]
push ecx
push str.avc3.sys
push ebx
lea edx, [ebp - 0x328]
push edx
call fcn.0052b4b0
add esp, 0x14
mov dword [ebp - 0xa58], 1
jmp 0x4123c0
mov esi, dword [ebp - 0xa64]
cmp edi, ebx
jne 0x4123de
push str.avckf
call fcn.005110b0
test eax, eax
je 0x4123de
cmp dword [ebp - 0xa5c], ebx
je 0x412484
lea eax, [ebp - 0x83c]
push eax
push str._AVCI__Re_installing_AVCKF.SYS_from__s
mov ecx, dword [ebp - 0xa60]
push ecx
call fcn.004f0f30
add esp, 0xc
cmp esi, ebx
je 0x412412
lea edx, [ebp - 0x83c]
push edx
push str._AVCI__Re_installing_AVCKF.SYS_from__s
push esi
call fcn.004f0f30
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push str.rundll32.exe_setupapi.dll_InstallHinfSection_DefaultInstall_128__savckf.inf
lea ecx, [ebp - 0xa44]
push ecx
call fcn.005dfb23
push 1
lea edx, [ebp - 0xa44]
push edx
call fcn.0050cdf0
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x530]
push eax
call fcn.004e8950
add esp, 0x2c
test eax, eax
jne 0x412459
cmp dword [ebp - 0xa4c], ebx
je 0x41247a
push str.drivers
lea ecx, [ebp - 0x634]
push ecx
push str.avckf.sys
push ebx
lea edx, [ebp - 0x328]
push edx
call fcn.0052b4b0
add esp, 0x14
mov dword [ebp - 0xa58], 1
cmp dword [ebp - 0xa54], ebx
je 0x41249b
mov eax, dword [ebp - 0xa50]
push eax
call fcn.004f7860
add esp, 4
call fcn.0052b210
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xa58]
jmp 0x4124ce
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret