Function at 0x1400242a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xb80]
sub rsp, 0xc80
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0xb50], rax
mov rsi, rdx
mov byte [rsp + 0x58], 0
mov rdx, rcx
mov rbx, rcx
lea rcx, [rbp + 0x312]
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 0x140024326
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024312
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
movzx eax, word [rbp + 0x90]
mov qword [rsp + 0xcb0], rdi
mov qword [rsp + 0xc78], r12
mov qword [rsp + 0xc70], r13
mov qword [rsp + 0xc68], r14
mov qword [rsp + CFormView::Create], r15
test ax, ax
jne 0x14002485c
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 0x14002485c
mov rax, qword [rsp + 0x50]
movzx ecx, word [rax]
mov word [rbp + 0x90], cx
test cx, cx
jne 0x14002485c
mov edx, 0x5858
lea rcx, [rsp + 0x40]
call fcn.14001b0f0
test ax, ax
jne 0x14002485c
lea ebx, [r15 + 0xa]
mov ecx, r15d
lea r12, [0x140000000]
nop word [rax + rax]
movzx eax, byte [rcx + r12 + 0x33990]
mov byte [rbp + rcx + 0x650], al
inc rcx
test al, al
jne 0x140024410
movzx eax, byte [rbp + 0x650]
lea r8, [rbp + 0x650]
lea rdx, [rbp + 0x950]
test al, al
je 0x140024481
mov r9, qword [0x14003d328]
cmp al, 0x20
jae 0x140024459
movzx eax, al
movzx ecx, word [r12 + rax*2 + 0x307e0]
jmp 0x14002446e
cmp al, 0x80
jae 0x140024462
movzx ecx, al
jmp 0x14002446e
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 0x140024447
mov word [rdx], r15w
lea rax, [rbp + 0x950]
mov edx, r15d
nop
cmp byte [rax], r15b
jne 0x14002449b
cmp byte [rax + 1], r15b
je 0x1400244a3
add rax, 2
inc edx
jmp 0x140024490
mov rax, qword [rsp + 0x50]
mov r8d, 0x100
mov ecx, 5
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 + 0x950]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov ecx, 0x80c
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], r15w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x22], r8w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x24], cx
lea rcx, [rbp + 0x450]
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], r8w
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 0x140024808
movzx edx, word [rbp + 0x450]
lea rax, [rbp + 0x450]
mov r14d, 0x5f
test dx, dx
je 0x140024581
cmp dx, 0x2d
jne 0x14002456d
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x140024563
movzx edx, word [rbp + 0x450]
lea r9, [rbp + 0x450]
movzx r8d, r15w
lea rcx, [rbp + 0x750]
test dx, dx
je 0x1400245db
nop dword [rax + rax]
movzx eax, dx
shr ax, 8
test al, al
je 0x1400245c1
mov byte [rcx], 0xf0
mov word [rcx + 1], dx
mov byte [rcx + 3], 0xf0
add rcx, 4
add r8w, 4
jmp 0x1400245cd
mov word [rcx], dx
add rcx, 2
add r8w, 2
movzx edx, word [r9 + 2]
add r9, 2
test dx, dx
jne 0x1400245a0
add r8w, 2
mov dword [rcx], 0xcc
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
movzx r8d, r8w
lea rdx, [rbp + 0x750]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140024631
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x14002461f
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x30680]
jmp 0x140024624
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r15b
mov rax, qword [rsp + 0x50]
mov edi, 6
mov word [rax], di
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x450]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov ecx, 0x100
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], cx
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 0x140024808
nop dword [rax + rax]
inc bx
cmp bx, 0x64
jbe 0x1400246ad
movzx ebx, r15w
xor ecx, ecx
lea rdx, [0x140033178]
movzx r8d, bx
call qword [0x140041ab0]
test ax, ax
jne 0x140024861
movzx edx, word [rbp + 0x450]
lea rax, [rbp + 0x450]
test dx, dx
je 0x1400246fe
nop dword [rax]
cmp dx, 0x2d
jne 0x1400246ea
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x1400246e0
movzx edx, word [rbp + 0x450]
lea r9, [rbp + 0x450]
movzx r8d, r15w
lea rax, [rbp + 0x750]
test dx, dx
je 0x140024750
movzx ecx, dx
shr cx, 8
test cl, cl
je 0x140024736
mov byte [rax], 0xf0
mov word [rax + 1], dx
mov byte [rax + 3], 0xf0
add rax, 4
add r8w, 4
jmp 0x140024742
mov word [rax], dx
add rax, 2
add r8w, 2
movzx edx, word [r9 + 2]
add r9, 2
test dx, dx
jne 0x140024715
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
add r8w, 2
mov dword [rax], 0xcc
movzx r8d, r8w
lea rdx, [rbp + 0x750]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400247a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024794
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x30680]
jmp 0x140024799
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r15b
mov rax, qword [rsp + 0x50]
mov word [rax], di
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
lea rcx, [rbp + 0x450]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], rcx
mov ecx, 0x100
mov rax, qword [rsp + 0x50]
mov word [rax + 0x20], cx
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 0x1400246a0
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 0x140024864
mov edi, 0x64
movzx eax, di
mov r15, qword [rsp + 0xc60]
mov r14, qword [rsp + 0xc68]
mov r13, qword [rsp + 0xc70]
mov r12, qword [rsp + 0xc78]
mov rdi, qword [rsp + 0xcb0]
mov rcx, qword [rbp + 0xb50]
xor rcx, rsp
call fcn.14002c160
add rsp, 0xc80
pop rsi
pop rbx
pop rbp
ret