Function at 0x417bc0
Capabilities:
Get common file path
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471afb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
mov ebx, ecx
push eax
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ax, word [ebp - 0x218]
lea esi, [ebp - 0x224]
mov word [ebx + 0x228], ax
mov word [ebx + 0x220], ax
call fcn.00417ac0
lea edi, [ebx + 0x224]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x21c], edi
cmp eax, esi
je 0x417c96
cmp dword [esi + 0xc], 0
jl 0x417c86
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x417c86
call fcn.00401a40
mov dword [ebp - 0x220], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417c79
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x417c96
mov ebx, dword [ecx - 0xc]
push ecx
push edi
call fcn.00401e80
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417cbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 0x23c]
push 0x15
push ecx
call fcn.004157e0
add esp, 8
call fcn.00415910
push str.ZNCC
push ecx
mov ecx, ebx
mov dword [ebx + 0x858], eax
lea esi, [ebx + 0x10]
call fcn.00415e80
add esp, 4
movzx edx, ax
push edx
push str._c:_s
push 0x104
push esi
call fcn.00454ebc
add esp, 0x14
push str.BackSystem
push esi
push str._s_s
lea edi, [ebx + 0x64c]
push 0x104
push edi
call fcn.00454ebc
add esp, 0x14
push str.BAKSYS.GHO
push edi
push str._s_s
lea eax, [ebx + 0x444]
push 0x104
push eax
call fcn.00454ebc
add esp, 0x14
push 0x47e8fc
push esi
lea edi, [ebx + 0x21c]
push str._s_s
call fcn.004019a0
add esp, 0xc
push str.Download
push esi
lea edi, [ebx + 0x854]
push str._s_s
call fcn.004019a0
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
add esp, 0xc
push str.bin_bcdedit.exe
push edx
push str._s_s
lea edi, [ebx + 0x22c]
call fcn.004019a0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
add esp, 0xc
push str.bin_bcdboot.exe
push ecx
push str._s_s
lea edi, [ebx + 0x230]
call fcn.004019a0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
add esp, 0xc
push str.bin_bcdsect.exe
push eax
push str._s_s
lea edi, [ebx + 0x234]
call fcn.004019a0
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
add esp, 0xc
push str.bindspt.exe
push edx
push str._s_s
lea edi, [ebx + 0x238]
call fcn.004019a0
mov ax, word [esi]
add esp, 0xc
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov word [ebx + 0x22a], ax
lea eax, [ebx + 0x64c]
push eax
push 0
call esi
mov ecx, dword [ebx + 0x21c]
push ecx
push 0
call esi
mov edx, dword [ebx + 0x854]
push edx
push 0
call esi
mov eax, ebx
call fcn.00418010
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454d73
mov esp, ebp
pop ebp
ret