Function at 0x140119bcc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140197680]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, edx
mov rsi, rcx
call fcn.140119b58
xor r15d, r15d
cmp dword [rax + 0x74], r15d
je 0x140119c91
call fcn.140119b58
mov dword [rax + 0x74], r15d
call fcn.140119b58
cmp dword [rax + 0x78], r15d
jne 0x140119c31
call fcn.140119b58
mov dword [rax + 0x78], 1
cmp qword [0x1401a25f0], r15
jne 0x140119c49
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x1401a25f0], rax
cmp qword [0x1401a25f8], r15
jne 0x140119c64
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [0x1401a25f8], rax
call fcn.140119b58
cmp qword [rax + 8], r15
jne 0x140119c8c
mov rcx, qword [0x1401a25f0]
mov edx, 0x4000
call fcn.14011a740
mov rbx, rax
call fcn.140119b58
mov qword [rax + 8], rbx
call fcn.14011ac70
lea r13, [0x140000000]
call fcn.140119b58
mov r12, qword [rax + 0x20]
call fcn.140119b58
mov qword [rbp - 0x20], r12
movzx ecx, word [rax + 0x10]
mov word [r12], cx
call fcn.140119b58
mov ebx, dword [rax + 0x78]
movzx eax, word [r12]
mov edi, dword [r13 + rax*4 + 0x15e8b0]
lea rax, [0x140000000]
movsxd r13, ebx
cmp word [rax + r13*2 + 0x15e7e0], r15w
je 0x140119cf5
call fcn.140119b58
mov dword [rax + 0x38], ebx
call fcn.140119b58
mov qword [rax + 0x40], r12
lea rax, [0x140000000]
movsx eax, word [rax + r13*2 + 0x15ed60]
lea r13, [0x140000000]
jmp 0x140119d28
movsx rbx, word [r13 + rax*2 + 0x15ee40]
cmp ebx, 0x64
jl 0x140119d1f
mov eax, edi
mov edi, dword [r13 + rax*4 + 0x15ecb0]
movsx eax, word [r13 + rbx*2 + 0x15ed60]
add eax, edi
movsxd rcx, eax
movsx eax, word [r13 + rcx*2 + 0x15f110]
cmp eax, ebx
movsxd rax, ebx
jne 0x140119d07
movsx eax, word [r13 + rax*2 + 0x15ed60]
add r12, 2
add eax, edi
mov ecx, 0xcb
movsx rbx, word [r13 + rax*2 + 0x15ef20]
cmp word [r13 + rbx*2 + 0x15ed60], cx
jne 0x140119cbb
movsxd rax, ebx
movsx edi, word [r13 + rax*2 + 0x15e7e0]
test edi, edi
jne 0x140119d94
call fcn.140119b58
mov r12, qword [rax + 0x40]
call fcn.140119b58
movsxd rcx, dword [rax + 0x38]
movsx edi, word [r13 + rcx*2 + 0x15e7e0]
call fcn.140119b58
mov r13, qword [rbp - 0x20]
mov rbx, r12
sub rbx, r13
sar rbx, 1
mov qword [rax + 0x30], r13
call fcn.140119b58
mov dword [rax + 0x18], ebx
movzx ebx, word [r12]
call fcn.140119b58
mov word [rax + 0x10], bx
mov word [r12], r15w
call fcn.140119b58
mov ecx, 1
mov qword [rax + 0x20], r12
cmp edi, 0x1b
jle 0x140119efe
cmp edi, 0x29
jbe 0x14011a218
cmp edi, 0x30
jbe 0x14011a1a6
sub edi, 0x31
je 0x14011a119
sub edi, 1
je 0x14011a15b
sub edi, 1
je 0x14011a0e9
sub edi, 1
jne 0x14011a12e
call fcn.140119b58
mov r13, r12
sub r13, qword [rax + 0x30]
sar r13, 1
dec r13d
call fcn.140119b58
movzx ecx, word [rax + 0x10]
mov word [r12], cx
call fcn.140119b58
mov rcx, qword [rax + 8]
cmp dword [rcx + 0x30], r15d
jne 0x140119e78
call fcn.140119b58
mov rcx, qword [rax + 8]
mov ebx, dword [rcx + 0x1c]
call fcn.140119b58
mov dword [rax + 0x14], ebx
mov rbx, qword [0x1401a25f0]
call fcn.140119b58
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
call fcn.140119b58
mov rcx, qword [rax + 8]
mov dword [rcx + 0x30], 1
call fcn.140119b58
mov rcx, qword [rax + 8]
mov rdi, qword [rcx + 8]
call fcn.140119b58
movsxd rbx, dword [rax + 0x14]
add rbx, rbx
call fcn.140119b58
lea rcx, [rdi + rbx]
cmp qword [rax + 0x20], rcx
jbe 0x140119fa0
call fcn.14011a874
test eax, eax
je 0x14011a097
sub eax, 1
jne 0x140119f55
call fcn.140119b58
mov dword [rax + 0x28], r15d
call fcn.140119b58
mov rbx, qword [rax + 0x30]
call fcn.140119b58
mov qword [rax + 0x20], rbx
call fcn.140119b58
mov ecx, 1
mov eax, dword [rax + 0x78]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, 0x35
mov edi, eax
cmp eax, 0x1b
jg 0x140119ddc
mov r13, qword [rbp - 0x20]
cmp eax, 0x1b
je 0x14011a5b9
cmp edi, 0xd
jg 0x14011a4ef
je 0x14011a4e4
cmp edi, 6
jg 0x14011a485
je 0x14011a4d3
test edi, edi
jne 0x14011a30d
call fcn.140119b58
movzx ecx, word [rax + 0x10]
mov word [r12], cx
call fcn.140119b58
mov r12, qword [rax + 0x40]
call fcn.140119b58
mov ebx, dword [rax + 0x38]
lea r13, [0x140000000]
jmp 0x140119d69
cmp eax, 1
jne 0x140119c91
call fcn.140119b58
mov rcx, qword [rax + 8]
mov rbx, qword [rcx + 8]
call fcn.140119b58
movsxd rcx, dword [rax + 0x14]
lea rbx, [rbx + rcx*2]
call fcn.140119b58
mov qword [rax + 0x20], rbx
call fcn.14011ab40
mov ebx, eax
call fcn.140119b58
mov r12, qword [rax + 0x20]
call fcn.140119b58
mov r13, qword [rax + 0x30]
mov qword [rbp - 0x20], r13
jmp 0x140119f49
call fcn.140119b58
movsxd rcx, r13d
mov rax, qword [rax + 0x30]
lea rbx, [rax + rcx*2]
call fcn.140119b58
mov qword [rax + 0x20], rbx
call fcn.14011ab40
movsxd rbx, eax
mov edi, ebx
call fcn.140119b58
mov r12d, 1
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x20], rax
lea rax, [0x140000000]
cmp word [rax + rbx*2 + 0x15e7e0], r15w
je 0x14011a004
call fcn.140119b58
mov dword [rax + 0x38], ebx
call fcn.140119b58
mov rcx, qword [rbp - 0x20]
mov qword [rax + 0x40], rcx
lea rax, [0x140000000]
movsx rax, word [rax + rbx*2 + 0x15ed60]
lea r13, [0x140000000]
movsx eax, word [r13 + rax*2 + 0x15f112]
cmp eax, ebx
je 0x14011a059
movsxd rax, edi
movsx rdi, word [r13 + rax*2 + 0x15ee40]
cmp edi, 0x64
jl 0x14011a03d
mov eax, r12d
mov r12d, dword [r13 + rax*4 + 0x15ecb0]
movsx eax, word [r13 + rdi*2 + 0x15ed60]
add eax, r12d
movsxd rcx, eax
movsx eax, word [r13 + rcx*2 + 0x15f110]
cmp eax, edi
jne 0x14011a021
movsxd rax, edi
movsx eax, word [r13 + rax*2 + 0x15ed60]
add eax, r12d
movsx edi, word [r13 + rax*2 + 0x15ef20]
cmp edi, 0x63
cmove edi, r15d
call fcn.140119b58
mov rcx, qword [rax + 0x30]
mov qword [rbp - 0x20], rcx
call fcn.140119b58
test edi, edi
jne 0x14011a0d9
mov r12, qword [rax + 0x20]
jmp 0x140119d69
call fcn.140119b58
movsxd rcx, r13d
mov rax, qword [rax + 0x30]
lea rbx, [rax + rcx*2]
call fcn.140119b58
mov qword [rax + 0x20], rbx
call fcn.14011ab40
mov ebx, eax
call fcn.140119b58
mov r12, qword [rax + 0x20]
call fcn.140119b58
lea r13, [0x140000000]
mov rcx, qword [rax + 0x30]
mov qword [rbp - 0x20], rcx
jmp 0x140119cbb
add qword [rax + 0x20], 2
mov ebx, edi
mov r12, qword [rax + 0x20]
jmp 0x140119cbb
mov rdi, qword [0x1401a25f8]
call fcn.140119b58
movsxd rbx, dword [rax + 0x18]
call fcn.140119b58
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140119c91
call fcn.140119b58
mov ebx, dword [rax + 0x18]
call fcn.140119b58
add dword [rax + 0x68], ebx
jmp 0x140119c91
cmp edi, 1
jne 0x14011a60b
mov dword [rbp - 0x20], 0x28
mov qword [rbp - 0x18], r15
call fcn.140119b58
movups xmm0, xmmword [rbp - 0x20]
mov ecx, dword [rax + 0x68]
mov dword [rbp - 0xc], ecx
movsd xmm1, qword [rbp - 0x10]
jmp 0x14011a5d6
call fcn.140119b58
mov dword [rax + 0x50], 0x29
call fcn.140119b58
mov dword [rax + 0x60], 0xdf
call fcn.140119b58
mov ebx, dword [rax + 0x68]
call fcn.140119b58
mov dword [rax + 0x64], ebx
call fcn.140119b58
mov ebx, dword [rax + 0x18]
call fcn.140119b58
add dword [rax + 0x68], ebx
call fcn.140119b58
movups xmm0, xmmword [rax + 0x50]
movsd xmm1, qword [rax + 0x60]
jmp 0x14011a5d6
je 0x14011a20d
sub edi, 0x2a
je 0x14011a202
sub edi, 1
je 0x14011a1f4
sub edi, 1
je 0x14011a1e9
sub edi, 1
je 0x14011a1de
sub edi, 1
je 0x14011a1d3
cmp edi, 1
jne 0x14011a60b
lea r9d, [rdi + 0x18]
jmp 0x14011a5bf
mov r9d, 0x18
jmp 0x14011a5bf
mov r9d, 0x2b
jmp 0x14011a5bf
mov r9d, 0x20
jmp 0x14011a5bf
mov r9d, 0x1f
mov r8d, ecx
jmp 0x14011a5c2
mov r9d, 0x1e
jmp 0x14011a5bf
mov r9d, InitCommonControls
jmp 0x14011a5bf
je 0x14011a302
cmp edi, 0x22
ja 0x14011a2a0
je 0x14011a295
sub edi, 0x1c
je 0x14011a28a
sub edi, 1
je 0x14011a27f
sub edi, 1
je 0x14011a274
sub edi, 1
je 0x14011a26c
sub edi, 1
je 0x14011a261
cmp edi, 1
jne 0x14011a60b
call fcn.140119b58
mov dword [rax + 0x50], InitCommonControls
call fcn.140119b58
mov qword [rax + 0x58], r15
jmp 0x14011a173
mov r9d, 0x16
jmp 0x14011a5bf
mov r9d, 0x15
jmp 0x14011a1fa
mov r9d, 0x14
jmp 0x14011a1fa
mov r9d, 0x13
jmp 0x14011a5bf
mov r9d, 0x12
jmp 0x14011a5bf
mov r9d, 0x17
jmp 0x14011a1fa
sub edi, 0x23
je 0x14011a2f7
sub edi, 1
je 0x14011a2ec
sub edi, 1
je 0x14011a2e1
sub edi, 1
je 0x14011a2d6
sub edi, 1
je 0x14011a2cb
cmp edi, 1
jne 0x14011a60b
lea r9d, [rdi + 0x1c]
jmp 0x14011a5bf
mov r9d, 0x1c
jmp 0x14011a5bf
mov r9d, 0x1b
jmp 0x14011a1fa
mov r9d, 0x1a
jmp 0x14011a1fa
mov r9d, 0x19
jmp 0x14011a1fa
mov r9d, 0x18
jmp 0x14011a1fa
mov r9d, 0x1e
jmp 0x14011a1fa
sub edi, 1
je 0x14011a452
sub edi, 1
je 0x14011a3a3
sub edi, 1
je 0x14011a395
sub edi, 1
je 0x14011a361
cmp edi, 1
jne 0x14011a60b
call fcn.140119b58
mov dword [rax + 0x50], 0x26
call fcn.140119b58
mov rcx, qword [rax + 0x30]
add rcx, 4
call fcn.140105d70
mov rbx, rax
call fcn.140119b58
mov qword [rax + 0x58], rbx
jmp 0x14011a173
call fcn.140119b58
mov edx, 0x24
mov dword [rax + 0x50], edx
call fcn.140119b58
mov rbx, qword [rax + 0x30]
call fcn.140119b58
movsxd rcx, dword [rax + 0x18]
mov word [rbx + rcx*2 - 2], r15w
call fcn.140119b58
mov rcx, qword [rax + 0x30]
add rcx, 2
jmp 0x14011a34b
call fcn.140119b58
mov dword [rax + 0x50], 0x23
jmp 0x14011a386
call fcn.140119b58
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 0x30]
call fcn.140105444
test eax, eax
jne 0x14011a3c7
call fcn.140119b58
mov dword [rax + 0x50], 0x22
jmp 0x14011a444
call fcn.140119b58
mov edx, 0x2e
mov rcx, qword [rax + 0x30]
call sub.VCRUNTIME140.dll_wcschr
mov rbx, rax
call fcn.140119b58
sub rbx, qword [rax + 0x30]
sar rbx, 1
call fcn.140119b58
movzx ecx, word [rax + 0x10]
mov word [r12], cx
movsxd rcx, ebx
lea rdi, [rcx*2]
add rdi, r13
call fcn.140119b58
mov qword [rax + 0x20], rdi
call fcn.140119b58
mov qword [rax + 0x30], r13
call fcn.140119b58
mov dword [rax + 0x18], ebx
movzx ebx, word [rdi]
call fcn.140119b58
mov word [rax + 0x10], bx
mov word [rdi], r15w
call fcn.140119b58
mov qword [rax + 0x20], rdi
call fcn.140119b58
mov dword [rax + 0x50], 0x21
call fcn.140119b58
mov rcx, qword [rax + 0x30]
jmp 0x14011a34b
call fcn.140119b58
mov edx, 0x24
mov rcx, qword [rax + 0x30]
lea eax, [rdx - 0x22]
cmp word [rcx], dx
cmove r15, rax
call fcn.140119b58
mov rcx, qword [rax + 0x30]
add rcx, r15
call fcn.140105368
cmp eax, 0xffffffff
jne 0x14011a438
jmp 0x14011a3b9
sub edi, 7
je 0x14011a4d3
sub edi, 1
je 0x14011a4d3
sub edi, 1
je 0x14011a4c2
sub edi, 1
je 0x14011a4b7
sub edi, 1
je 0x14011a4af
cmp edi, 1
jne 0x14011a60b
mov r9d, ecx
jmp 0x14011a1fa
xor r9d, r9d
jmp 0x14011a1fa
mov r9d, 0x2a
jmp 0x14011a5bf
call fcn.140119b58
mov dword [rax + 0x50], 0x27
jmp 0x14011a33e
call fcn.140119b58
mov dword [rax + 0x50], 0x25
jmp 0x14011a444
mov r9d, 2
jmp 0x14011a5bf
cmp edi, 0x14
jg 0x14011a560
je 0x14011a558
sub edi, 0xe
je 0x14011a54d
sub edi, 1
je 0x14011a542
sub edi, 1
je 0x14011a537
sub edi, 1
je 0x14011a52c
sub edi, 1
je 0x14011a521
cmp edi, 1
jne 0x14011a60b
lea r9d, [rdi + 7]
jmp 0x14011a5bf
mov r9d, 7
jmp 0x14011a5bf
mov r9d, 6
jmp 0x14011a5bf
mov r9d, 5
jmp 0x14011a1fa
mov r9d, 4
jmp 0x14011a1fa
mov r9d, 3
jmp 0x14011a1fa
mov r9d, 9
jmp 0x14011a5bf
sub edi, 0x15
je 0x14011a5b1
sub edi, 1
je 0x14011a5a6
sub edi, 1
je 0x14011a59e
sub edi, 1
je 0x14011a593
sub edi, 1
je 0x14011a588
cmp edi, 1
jne 0x14011a60b
lea r9d, [rdi + 0xf]
jmp 0x14011a5bf
mov r9d, InitCommonControls
jmp 0x14011a1fa
mov r9d, InitCommonControls
jmp 0x14011a1fa
mov r9d, InitCommonControls
jmp 0x14011a5bf
mov r9d, 0xb
jmp 0x14011a1fa
mov r9d, 0xa
jmp 0x14011a5bf
mov r9d, reloc.COMCTL32.dll_InitCommonControls
xor r8d, r8d
mov edx, r14d
lea rcx, [rbp - 0x20]
call fcn.14011a688
movsd xmm1, qword [rax + 0x10]
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
mov rax, rsi
movsd qword [rsi + 0x10], xmm1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003c6a0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.fatal_flex_scanner_internal_error__no_action_found
call fcn.14011a7f4
int3