Function at 0x140023c40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x988]
sub rsp, 0xa88
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0x960], rax
mov rbx, rcx
mov dword [rbp + 0x450], 0xa000d
mov rdx, rcx
mov word [rbp + 0x454], 0
lea rcx, [rbp + 0x312]
mov byte [rsp + 0x58], 0
mov rsi, r8
mov edi, 0xa
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call fcn.14002a700
mov r8, rax
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.1400168d0
mov word [rbp + 0x90], ax
test rbx, rbx
je 0x140023cdf
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140023ccb
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
movzx eax, word [rbp + 0x90]
mov qword [rsp + 0xab8], r12
mov qword [rsp + CDHtmlDialog::CanAccessExternal], r13
mov qword [rsp + CAutoHideDockSite::CanAcceptPane], r14
mov qword [rsp + 0xa70], r15
test ax, ax
jne 0x14002425c
mov rax, qword [rsp + 0x50]
xor r15d, r15d
mov word [rax], r15w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
movzx edx, word [rcx + 2]
mov word [rbp + 0x92], dx
movzx eax, word [rcx + 4]
mov word [rbp + 0x94], ax
movzx eax, word [rcx + 6]
mov word [rbp + 0x96], ax
movzx eax, word [rcx + 8]
mov word [rbp + 0x98], ax
mov eax, dword [rcx + 0xc]
mov dword [rbp + 0x9c], eax
movzx eax, word [rcx + 0x10]
mov ecx, edx
mov word [rbp + 0xa0], ax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x88], rax
test rax, rax
je 0x14002425c
mov rax, qword [rsp + 0x50]
movzx ecx, word [rax]
mov word [rbp + 0x90], cx
test cx, cx
jne 0x14002425c
mov edx, 0x5858
lea rcx, [rsp + 0x40]
call fcn.14001b0f0
test ax, ax
jne 0x14002425c
mov ecx, r15d
lea r12, [0x140000000]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r12 + 0x33990]
mov byte [rbp + rcx + 0x660], al
inc rcx
test al, al
jne 0x140023dc0
movzx eax, byte [rbp + 0x660]
lea r8, [rbp + 0x660]
lea rdx, [rbp + 0x760]
test al, al
je 0x140023e31
mov r9, qword [0x14003d328]
cmp al, 0x20
jae 0x140023e09
movzx eax, al
movzx ecx, word [r12 + rax*2 + 0x307e0]
jmp 0x140023e1e
cmp al, 0x80
jae 0x140023e12
movzx ecx, al
jmp 0x140023e1e
movzx eax, al
movzx ecx, word [r9 + rax*2 - 0x100]
movzx eax, byte [r8 + 1]
inc r8
mov word [rdx], cx
add rdx, 2
test al, al
jne 0x140023df7
mov word [rdx], r15w
lea rax, [rbp + 0x760]
mov edx, r15d
nop
cmp byte [rax], r15b
jne 0x140023e4b
cmp byte [rax + 1], r15b
je 0x140023e53
add rax, 2
inc edx
jmp 0x140023e40
mov rax, qword [rsp + 0x50]
mov ecx, 5
mov r13d, 0x100
add dx, dx
mov word [rax], cx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x760]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov ecx, 0x802
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], r15w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x22], r13w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x24], cx
lea rcx, [rbp + 0x460]
mov rax, qword [rsp + 0x50]
mov word [rax + 0x32], dx
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov word [rax + 0x30], r13w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x140024208
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x460]
cmp byte [rcx], r15b
jne 0x140023f13
cmp byte [rcx + 1], r15b
je 0x140023f20
add rcx, 2
jmp 0x140023f08
movzx eax, byte [rdx]
mov byte [rcx], al
lea rcx, [rcx + 2]
movzx eax, byte [rdx + 1]
add rdx, 2
mov byte [rcx - 1], al
cmp byte [rdx], r15b
jne 0x140023f20
cmp byte [rdx + 1], r15b
jne 0x140023f20
mov word [rcx], r15w
lea rax, [rbp + 0x460]
mov r8d, r15d
nop dword [rax]
cmp byte [rax], r15b
jne 0x140023f5b
cmp byte [rax + 1], r15b
je 0x140023f64
add rax, 2
inc r8d
jmp 0x140023f50
movzx edx, word [rbp + 0x460]
lea rax, [rbp + 0x460]
add r8w, r8w
mov r14d, 0x5f
test dx, dx
je 0x140023f9f
cmp dx, 0x2d
jne 0x140023f8b
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x140023f81
movzx edx, word [rbp + 0x460]
lea rcx, [rbp + 0x460]
test dx, dx
je 0x140023fbf
nop dword [rax + rax]
not byte [rcx]
not byte [rcx + 1]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140023fb0
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
movzx r8d, r8w
lea rdx, [rbp + 0x460]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002400a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140023ff8
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x30680]
jmp 0x140023ffd
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r15b
mov rax, qword [rsp + 0x50]
mov ebx, 6
mov word [rax], bx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x460]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], r13w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x140024208
nop dword [rax]
inc di
cmp di, 0x64
jbe 0x14002407d
movzx edi, r15w
xor ecx, ecx
lea rdx, [0x140033178]
movzx r8d, di
call qword [0x140041ab0]
test ax, ax
jne 0x140024261
lea rdx, [rbp + 0x450]
lea rax, [rbp + 0x460]
cmp byte [rax], r15b
jne 0x1400240b2
cmp byte [rax + 1], r15b
je 0x1400240c0
add rax, 2
jmp 0x1400240a7
movzx ecx, byte [rdx]
mov byte [rax], cl
lea rax, [rax + 2]
movzx ecx, byte [rdx + 1]
add rdx, 2
mov byte [rax - 1], cl
cmp byte [rdx], r15b
jne 0x1400240c0
cmp byte [rdx + 1], r15b
jne 0x1400240c0
mov word [rax], r15w
mov r8d, r15d
lea rax, [rbp + 0x460]
nop dword [rax]
cmp byte [rax], r15b
jne 0x1400240fb
cmp byte [rax + 1], r15b
je 0x140024104
add rax, 2
inc r8d
jmp 0x1400240f0
movzx edx, word [rbp + 0x460]
lea rax, [rbp + 0x460]
add r8w, r8w
test dx, dx
je 0x14002413e
nop dword [rax + rax]
cmp dx, 0x2d
jne 0x14002412a
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x140024120
movzx edx, word [rbp + 0x460]
lea rcx, [rbp + 0x460]
test dx, dx
je 0x14002415f
nop word [rax + rax]
not byte [rcx]
not byte [rcx + 1]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140024150
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
movzx r8d, r8w
lea rdx, [rbp + 0x460]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400241aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024198
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x30680]
jmp 0x14002419d
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r15b
mov rax, qword [rsp + 0x50]
mov word [rax], bx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x460]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], r13w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
je 0x140024070
mov eax, 3
mov word [rdx], ax
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 8], rcx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
movzx edx, word [rcx]
mov word [rbp + 0x90], dx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r15w
jmp 0x140024264
mov ebx, 0x64
movzx eax, bx
mov r15, qword [rsp + 0xa70]
mov r14, qword [rsp + 0xa78]
mov r13, qword [rsp + 0xa80]
mov r12, qword [rsp + 0xab8]
mov rcx, qword [rbp + 0x960]
xor rcx, rsp
call fcn.14002c160
add rsp, 0xa88
pop rdi
pop rsi
pop rbx
pop rbp
ret