Function at 0x41f0d0
Capabilities:
Check os version

Disassembly:
push r15
push r14
mov eax, 0x5a08
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.005e8740
sub rsp, rax
mov dword [rsp + 0x5a60], r8d
mov rbx, r9
mov qword [rsp + 0x5a50], rcx
mov r14, rdx
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xe8], 0
mov dword [rsp + 0xec], 1
lea rdi, [rsp + 0x1c0]
lea rsi, [rsp + 0x2a0]
call fcn.00430640
mov rbp, qword [0x00670bd0]
mov qword [rsp + 0x80], rax
mov edx, 0x30
lea rcx, [0x0069f188]
mov rax, qword [rbp]
call qword [rax + 0x998]
mov r12d, dword [rsp + 0x5a70]
mov qword [rsp + 0xd8], rax
lea rax, str._confirmoverwrite
mov rcx, rdi
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0xd0], rdi
test r12d, r12d
lea r12, str._defaultextension
cmove r12, rax
mov rax, qword [rbp]
xor r13d, r13d
mov word [rsp + 0x8c0], r13w
call qword [rax + 0x3e0]
mov rax, qword [rbp]
mov qword [rsp + 0x70], rsi
mov rcx, rsi
call qword [rax + 0x3e0]
cmp dword [rsp + 0x5a60], 1
jle 0x41fc43
mov eax, dword [rsp + 0x5a60]
lea r15, [rsp + 0x7e0]
lea r13, [0x0062a444]
add rbx, 0x10
mov esi, 2
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
sub eax, 2
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x98], 0
shr eax, 1
lea eax, [rax + rax + 4]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0xec]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x380]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x8c0]
mov qword [rsp + 0xc8], rax
nop dword [rax]
mov rax, qword [rbp]
lea rcx, [0x0062a40e]
mov rdi, qword [rbx]
mov rdx, qword [rbx - 8]
mov r9d, 0x10
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x28], 0
mov r8, r12
mov rcx, r14
call qword [rax + 0x990]
test eax, eax
jne 0x41f6d4
cmp esi, dword [rsp + 0x5a60]
je 0x41f840
mov rax, qword [rbp]
mov rcx, rdi
call qword [rax + 0xab0]
movsxd rcx, dword [rsp + 0x7e0]
shl rcx, 4
add rcx, r12
cmp dword [rcx + 8], 8
ja case.default.0x41f308
mov edx, dword [rcx + 8]
movsxd rcx, dword [r13 + rdx*4]
add rcx, r13
jmp rcx
mov rax, qword [rbp]
mov r8, qword [rsp + 0xb8]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x110]
test eax, eax
jne 0x41f87a
add rbx, 0x10
add esi, 2
cmp esi, dword [rsp + 0x68]
jne 0x41f290
lea rax, [rsp + 0xe4]
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0x88]
mov rcx, r14
mov ebx, 1
mov qword [rsp + 0x20], rax
call fcn.0041edd0
test eax, eax
jne 0x41f6d9
mov rcx, qword [rsp + 0x5a50]
lea rsi, [rsp + 0x120]
mov rdi, rsi
call fcn.00409f80
mov rax, qword [rsp + 0x5a50]
mov rcx, qword [rax + 0x28]
call fcn.00425f20
mov ecx, 0x13
mov rbx, rax
xor eax, eax
rep stosq qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov qword [rsp + 0x128], rbx
mov edx, 0xfffffffa
sbb eax, eax
mov rcx, rbx
and eax, 0xfffffff0
add eax, 0x98
mov dword [rsp + 0x120], eax
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x8c0]
mov edi, dword [rsp + 0x5a70]
mov dword [rsp + 0x158], 0x28a0
mov dword [rsp + 0x180], 0x88082c
mov qword [rsp + 0x150], rax
lea rax, [0x0041e160]
test edi, edi
mov qword [rsp + 0x198], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x190], rax
jne 0x41f884
mov r11d, dword [rsp + 0xec]
test r11d, r11d
je 0x41f454
mov dword [rsp + 0x180], 0x88082e
mov rax, qword [rsp + 0xd8]
mov r10d, dword [rax]
test r10d, r10d
je 0x41f46c
mov qword [rsp + 0x100], r14
mov r9d, dword [rsp + 0xe8]
test r9d, r9d
jne 0x41fadd
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x41f4ba
mov rax, qword [rbp]
lea r9, [rsp + 0x460]
mov r8d, 0xffffffff
mov rcx, qword [rsp + 0x80]
call qword [rax + 0xa78]
mov rax, qword [rsp + 0x460]
mov qword [rsp + 0x188], rax
mov rax, qword [rbp]
lea rdi, [rsp + 0x540]
mov rdx, qword [rsp + 0x1c0]
mov r8d, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x80]
mov r9, rdi
call qword [rax + 0xa78]
mov rax, qword [rsp + 0x540]
mov rdx, qword [rsp + 0x2a0]
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x14c], eax
cmp byte [rdx], 0
mov rax, qword [rbp]
je 0x41f8ff
lea r9, [rsp + 0x620]
mov r8d, dword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0xa78]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x620]
test rdx, rdx
mov qword [rsp + 0x170], rax
je 0x41f585
mov rax, qword [rbp]
lea r9, [rsp + 0x700]
mov r8d, 0xffffffff
mov rcx, qword [rsp + 0x80]
call qword [rax + 0xa78]
mov rax, qword [rsp + 0x700]
mov qword [rsp + 0x178], rax
mov rax, qword [rbp]
mov ecx, 1
call qword [rax + 0x758]
mov r8d, dword [rsp + 0x5a70]
mov r12d, eax
mov rcx, rsi
test r8d, r8d
je 0x41fad0
call qword [sym.imp.comdlg32.dll_GetOpenFileNameW]
mov esi, eax
mov rdx, qword [rbp]
mov ecx, r12d
call qword [rdx + 0x758]
call fcn.0041e390
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rax, qword [rbp]
mov rcx, r14
call qword [rax + 0x6d8]
call qword [sym.imp.comdlg32.dll_CommDlgExtendedError]
test esi, esi
jne 0x41f98b
cmp eax, 0x3003
je 0x41fb0c
cmp eax, 0x3002
je 0x41f894
xor ebx, ebx
cmp qword [rsp + 0x178], 0
je 0x41f623
mov rax, qword [rbp]
lea rcx, [rsp + 0x700]
call qword [rax + 0x3d0]
cmp qword [rsp + 0x170], 0
je 0x41f640
mov rax, qword [rbp]
lea rcx, [rsp + 0x620]
call qword [rax + 0x3d0]
mov rax, qword [rbp]
mov rcx, rdi
call qword [rax + 0x3d0]
cmp qword [rsp + 0x188], 0
je 0x41f6d9
mov rax, qword [rbp]
lea rcx, [rsp + 0x460]
call qword [rax + 0x3d0]
jmp 0x41f6d9
mov rax, qword [rbp]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x628]
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x90], rax
jmp case.default.0x41f308
mov qword [rsp + 0xa0], rax
jmp case.default.0x41f308
mov r8, qword [rsp + 0x5a50]
mov rdx, rax
mov rcx, r14
call fcn.0040b1e0
test rax, rax
mov qword [rsp + 0x5a50], rax
jne case.default.0x41f308
mov ebx, 1
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x3d0]
mov rax, qword [rbp]
mov rcx, qword [rsp + 0xd0]
call qword [rax + 0x3d0]
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x41f70e
mov rax, qword [rbp]
call qword [rax + 0x30]
mov eax, ebx
add rsp, 0x5a08
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0xc0]
mov r9, qword [rbp]
mov rdx, rax
mov rcx, r14
mov r8, rdi
call qword [r9 + 0x7d8]
test rax, rax
je 0x41f6d4
mov rax, qword [rbp]
mov rdx, qword [rsp + 0xc8]
xor ecx, ecx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x5140
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x388]
mov r8, qword [rsp + 0x380]
mov rdx, qword [rsp + 0x80]
call qword [rax + 0xa70]
mov rax, qword [rbp]
mov rcx, rdi
call qword [rax + 0x3d0]
jmp case.default.0x41f308
xor edx, edx
cmp byte [rax], 0x2e
sete dl
add rax, rdx
mov qword [rsp + 0x98], rax
jmp case.default.0x41f308
mov rax, qword [rbp]
mov r8, qword [rsp + 0xb0]
jmp 0x41f31c
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rbp]
mov qword [rsp + 0x78], rax
mov rcx, rdi
call qword [rdx + 0x3d0]
mov rax, qword [rsp + 0x78]
mov r9, qword [rbp]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call qword [r9 + 0x7d8]
test rax, rax
jne case.default.0x41f308
jmp 0x41f6d4
mov qword [rsp + 0x88], rdi
jmp case.default.0x41f308
movsxd rax, dword [rsp + 0x7e0]
mov r10, qword [rbp]
lea r9, [0x0062a415]
mov qword [rsp + 0x20], 0
lea rdx, [0x0062a41f]
mov rcx, r14
shl rax, 4
mov r8, qword [r12 + rax]
call qword [r10 + 0x240]
jmp 0x41f6d4
mov ebx, 1
jmp 0x41f70e
mov dword [rsp + 0x180], 0x88182c
jmp 0x41f454
mov rax, qword [rbp]
xor r8d, r8d
lea rdx, str.invalid_filename__
mov rcx, r14
lea rbx, [rsp + 0x380]
call qword [rax + 0x750]
mov rax, qword [rbp]
mov rdx, qword [rsp + 0x150]
mov r8, rbx
mov rcx, qword [rsp + 0x80]
mov rsi, qword [rax + 0x240]
call fcn.0041e090
mov rcx, r14
mov rdx, rax
xor r9d, r9d
lea r8, [0x0062a440]
call rsi
mov rax, qword [rbp]
mov rcx, rbx
call qword [rax + 0x3d0]
mov ebx, 1
jmp 0x41f606
mov r15, qword [rsp + 0x70]
mov rcx, r15
call qword [rax + 0x3d0]
mov rax, qword [rbp]
mov rdx, r15
mov rcx, r14
call qword [rax + 0xb78]
test rax, rax
je 0x41fc84
mov rax, qword [rbp]
lea r15, [rsp + 0x7e0]
mov rdx, qword [rsp + 0x2a0]
mov rcx, r14
mov r8, r15
call qword [rax + 0x7d8]
test rax, rax
je 0x41fc8c
mov rax, qword [rbp]
lea r9, [rsp + 0x620]
mov r8d, dword [rsp + 0x7e8]
mov rdx, qword [rsp + 0x7e0]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0xa78]
mov rax, qword [rbp]
mov rcx, r15
call qword [rax + 0x3d0]
jmp 0x41f538
test byte [rsp + 0x181], 2
jne 0x41fb1a
mov rax, qword [rbp]
lea rsi, [rsp + 0x380]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x80]
mov r8, rsi
mov rbx, qword [rax + 0x240]
call fcn.0041e090
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call rbx
mov edx, dword [rsp + 0x388]
mov rax, qword [rbp]
xor ebx, ebx
mov rcx, rsi
test edx, edx
setg bl
call qword [rax + 0x3d0]
mov eax, dword [rsp + 0x14c]
test eax, eax
je 0x41f604
cmp qword [rsp + 0xa8], 0
setne al
test al, bl
je 0x41f604
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x41f604
mov rax, qword [rbp]
mov qword [rsp + 0xf8], 0
lea r9, [rsp + 0xf8]
mov qword [rsp + 0x7e0], 0
lea r8, [rsp + 0xf0]
mov rcx, r14
call qword [rax + 0x178]
test eax, eax
jne 0x41f8f5
mov eax, dword [rsp + 0x14c]
mov rdx, qword [rsp + 0xf8]
lea r9, [rsp + 0x7e0]
mov r10, qword [rbp]
lea r8, [rsp + 0xf4]
mov rcx, r14
sub eax, 1
mov rdx, qword [rdx + rax*8]
call qword [r10 + 0x178]
test eax, eax
jne 0x41f8f5
mov rdx, qword [rsp + 0x7e0]
mov rax, qword [rbp]
xor r8d, r8d
mov dword [rsp + 0x20], 0x201
xor ebx, ebx
mov rcx, r14
mov r9, qword [rdx]
mov rdx, qword [rsp + 0xa8]
call qword [rax + 0x630]
test rax, rax
sete bl
jmp 0x41f606
call qword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov esi, eax
jmp 0x41f5b3
mov rax, qword [rbp]
or dword [rsp + 0x180], 0x200
mov ecx, 0x400
mov dword [rsp + 0x108], 0x400
call qword [rax + 0x28]
mov qword [rsp + 0x110], rax
jmp 0x41f47d
test byte [rsp + 0x181], 2
je 0x41f604
mov rax, qword [rbp]
mov r15, qword [rsp + 0x110]
lea rbx, [rsp + 0x7e0]
xor r12d, r12d
call qword [rax + 0x1c8]
mov rcx, qword [rsp + 0x80]
mov rsi, rax
lea rax, [rsp + 0x380]
mov rdx, r15
mov r8, rax
mov qword [rsp + 0x68], rax
call fcn.0041e090
xor edx, edx
nop dword [rax]
cmp word [r15], 0
je 0x41fc18
mov rax, r15
nop
add rax, 2
cmp word [rax], 0
jne 0x41fb70
cmp word [rax + 2], 0
lea r15, [rax + 2]
je 0x41fb60
mov rcx, qword [rsp + 0x80]
mov r8, rbx
mov rdx, r15
add r12d, 1
call fcn.0041e090
mov rax, qword [rbp]
mov edx, dword [rsp + 0x388]
mov rcx, qword [rsp + 0x380]
call qword [rax + 0x1d0]
mov r13, rax
mov rax, qword [rbp]
mov r8d, 0xffffffff
lea rdx, [0x0062a42b]
mov rcx, r13
call qword [rax + 0x90]
mov rax, qword [rbp]
mov r8d, dword [rsp + 0x7e8]
mov rcx, r13
mov rdx, qword [rsp + 0x7e0]
call qword [rax + 0x90]
mov rax, qword [rbp]
mov rcx, rbx
call qword [rax + 0x3d0]
mov rax, qword [rbp]
mov rdx, rsi
mov r8, r13
xor ecx, ecx
call qword [rax + 0x170]
mov edx, 1
jmp 0x41fb60
test r12d, r12d
mov ebx, edx
je 0x41fc9e
mov rax, qword [rbp]
mov rcx, r14
mov rdx, rsi
call qword [rax + 0x768]
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x3d0]
jmp 0x41f9ea
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x98], 0
jmp 0x41f341
lea r15, [rsp + 0x7e0]
mov rax, qword [rbp]
mov rcx, r14
call qword [rax + 0x6d8]
jmp 0x41f979
mov rax, qword [rbp]
mov edx, dword [rsp + 0x388]
mov rcx, qword [rsp + 0x380]
mov r13, qword [rax + 0x170]
call qword [rax + 0x1d0]
xor ecx, ecx
mov r8, rax
mov rdx, rsi
call r13
mov ecx, dword [rsp + 0x388]
xor eax, eax
test ecx, ecx
setg al
or ebx, eax
jmp 0x41fc1f