Function at 0x420550
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x458556
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x471df4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x280], 0
mov dword [esp + 0x14], eax
mov bl, 1
push str.ReinstallBackups
lea ecx, [esp + 0x28]
mov byte [esp + 0x284], bl
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x280], 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044a442
push esi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x28c], 3
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 4
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x280], 3
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 2
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], bl
call fcn.0044a3d4
push str.ReinstallBackups0000DriverFiles
lea ecx, [esp + 0x30]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x284], 5
call fcn.0044a442
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x28c], 6
call fcn.0044a5b7
lea esi, [edi + 0x48]
push eax
mov ecx, esi
mov byte [esp + 0x284], 7
mov dword [esp + 0x24], esi
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 6
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 5
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], bl
call fcn.0044a3d4
lea ecx, [edi + 0x4c]
push 0x46c49c
call fcn.0044a511
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esp + 0x138]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x420851
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push 0x46c3c8
push edx
call fcn.004497ea
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax - 8]
cmp eax, 4
jge 0x420739
mov esi, 4
sub esi, eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push 0x46c3cc
push edx
call fcn.0044a691
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x284], 8
call fcn.0044a4c1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], bl
call fcn.0044a3d4
dec esi
jne 0x420700
push str.ReinstallBackups_
lea ecx, [esp + 0x20]
call fcn.0044a442
mov esi, eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x284], 9
call fcn.0044a442
push esi
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x28c], 0xa
call fcn.0044a5b7
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 0xb
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x280], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x280], 9
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x138]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x42080a
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0xff
mov dword [esp + 0x18], eax
jl 0x4206d6
jmp 0x42084d
lea eax, [esp + 0x10]
push str.DriverFiles
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0044a61d
mov ecx, dword [esp + 0x20]
push eax
mov byte [esp + 0x284], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], bl
call fcn.0044a3d4
lea edx, [esp + 0x14]
lea ecx, [edi + 0x4c]
push edx
call fcn.0044a4c1
mov esi, dword [esp + 0x20]
cmp dword [edi], 0
je 0x4208a8
push str.I386_
lea ecx, [esp + 0x2c]
call fcn.0044a442
push eax
lea eax, [esp + 0x20]
push esi
push eax
mov byte [esp + 0x28c], 0xe
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 0xf
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 0xe
call fcn.0044a3d4
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x28]
jmp 0x4208f8
push 0x46a404
lea ecx, [esp + 0x2c]
call fcn.0044a442
push eax
lea ecx, [esp + 0x20]
push esi
push ecx
mov byte [esp + 0x28c], 0x10
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 0x11
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 0x10
call fcn.0044a3d4
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x28]
call fcn.0044a3d4
push 0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0044a149
call fcn.0042cdd0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x274
ret