Function at 0x410000
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00418360
mov edx, dword [0x454e8c]
mov edi, eax
mov esi, dword [edi]
add esi, dword [0x453990]
lea ecx, [esi + 0xa]
call fcn.00411890
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
push dword [edi]
push dword [edi + 4]
push dword [ebx + 4]
call fcn.00441e40
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, dword [edi]
push dword [0x453990]
push dword [0x453994]
push eax
call fcn.00441e40
lea ecx, [edi - 8]
add esp, 0xc
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41007f
call fcn.00411970
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x410094
mov dword [0x4549ac], ebx
jmp 0x4100ac
lea ecx, [ebx - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4100a6
call fcn.00411970
mov ebx, dword [0x4549ac]
test ebx, ebx
jne 0x410148
mov ecx, str.Process_Hackerpeview.xml
call fcn.00411ec0
mov edx, dword [0x454e8c]
add eax, eax
mov dword [ebp - 0x28], eax
lea esi, [eax + 0x208]
lea ecx, [esi + 0xa]
call fcn.00411890
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov dword [ebx + 4], eax
mov dword [ebx], esi
mov word [eax + esi], cx
push dword [ebx + 4]
push ecx
push ecx
push 0x1a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x410126
mov ecx, dword [ebx + 4]
call fcn.00411ec0
mov esi, dword [ebp - 0x28]
add eax, eax
mov dword [ebx], eax
shr eax, 1
lea ecx, [esi + 2]
push ecx
mov ecx, dword [ebx + 4]
push str.Process_Hackerpeview.xml
lea eax, [ecx + eax*2]
push eax
call fcn.00441e40
add esp, 0xc
add dword [ebx], esi
jmp 0x41013a
lea ecx, [ebx - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x410138
call fcn.00411970
xor ebx, ebx
mov dword [0x4549ac], ebx
test ebx, ebx
je 0x410216
mov ecx, dword [ebx + 4]
call fcn.00414950
cmp eax, 0xc0000102
jne 0x410216
push str.If_you_select_No__the_settings_system_will_not_function_properly.
push str.PE_Views_settings_file_is_corrupt._Do_you_want_to_reset_it_
push 0xffff
push 6
push 0
call fcn.00417860
add esp, 0x14
cmp eax, 6
jne 0x4101f6
mov eax, dword [str._settings___settings_]
lea ecx, [ebp - 0x28]
mov edx, dword [0x4549ac]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x44e8d0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x44e8d4]
mov edx, dword [edx + 4]
push 0x60
mov dword [ebp - 0x14], eax
mov eax, dword [0x44e8d8]
push 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x44e8dc]
push 5
mov dword [ebp - 0xc], eax
mov ax, word [0x44e8e0]
push 0
push 0x120116
mov word [ebp - 8], ax
call fcn.0041ad50
test eax, eax
js 0x410216
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0x15
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x410216
mov ecx, dword [0x4549ac]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], edi
dec edi
jne 0x41020c
call fcn.00411970
mov dword [0x4549ac], 0
mov ecx, 5
mov ebx, 0x4549e8
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x410231
mov ecx, ebx
call fcn.00422ba0
mov ecx, dword [0x454e84]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], 0x16
mov dword [ebp - 0x3c], str.MaxSizeUnit
call fcn.004133a0
mov esi, eax
test esi, esi
je 0x41025d
cmp dword [esi], 1
jne 0x41025d
mov edi, dword [esi + 0x14]
jmp 0x410262
mov edi, dword [ebp - 0x28]
xor esi, esi
xor edx, edx
mov eax, 5
lock cmpxchg dword [ebx], edx
cmp eax, 5
je 0x410279
mov ecx, ebx
call fcn.00422cf0
test esi, esi
jne 0x410288
push 0xc0000225
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [ebp - 4]
mov dword [0x453dc8], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429cdd
mov esp, ebp
pop ebp
ret