Function at 0x140379840
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
push rbp
sub rsp, 0x68
mov esi, edx
mov qword [rsp + 0xb0], r8
mov r15, r9
mov r14, rcx
cmp esi, 0xfffffffb
je 0x14037b8e6
mov ecx, esi
lea rdx, [rsp + 0x58]
mov r8, r14
mov r9d, 5
call fcn.1403bf1e0
mov edi, eax
test edi, edi
je 0x140379940
lea rbx, [rsp + 0xc8]
mov qword [rsp + 0x30], rbx
movzx r10d, byte [rsp + 0xb3]
and r10d, 0x80
mov dword [rsp + 0x50], 0
shr r10d, 7
je 0x1403798ba
mov ebx, dword [rsp + 0xb4]
mov dword [rsp + 0x50], ebx
mov bl, byte [rsp + 0x51]
and bl, 0x80
shr bl, 7
mov bpl, byte [rsp + 0xb0]
and bpl, 1
or bpl, bl
je 0x140379921
test r10d, r10d
je 0x140379911
test byte [rsp + 0x50], 0x10
je 0x140379911
mov rbx, qword [rsp + 0x30]
lea rbp, [rbx + 8]
mov qword [rsp + 0x30], rbp
add rbx, 0x10
mov r10, qword [rbp - 8]
mov qword [rsp + 0x30], rbx
mov rbp, qword [rbp]
cmp byte [r10], 0x38
jne 0x140379911
cmp byte [r10 + 2], 0x4e
je 0x14037a8a8
movzx eax, di
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, edi
mov edx, 2
mov r8d, esi
lea r9, str.unknown
call fcn.140383960
mov qword [rsp + 0x30], 0
mov rbp, qword [rsp + 0x58]
test byte [rbp + 0x292], 0x40
je 0x140379a5b
mov rbx, qword [rbp + 0x108]
test rbx, rbx
je 0x140379a5b
cmp byte [rbx + 0x32], 0
je 0x140379a5b
movzx eax, word [rbp + 0x27a]
test eax, eax
jg 0x140379a5b
mov rbx, qword [rbx + 0x18]
cmp rbx, rbp
je 0x140379a5b
mov dil, byte [rbx + 0x295]
test dil, 0x40
je 0x1403799a2
cmp byte [rbx + 0x27e], 1
je 0x14037b8af
mov rcx, rbx
call fcn.1403d1d20
mov rbp, qword [rsp + 0x58]
mov rbp, qword [rbp + 0x108]
test rbp, rbp
je 0x1403799bf
mov byte [rbp + 0x32], 0
test eax, eax
je 0x140379a48
mov rbp, qword [rbx + 0x30]
test rbp, rbp
je 0x14037a9ff
test byte [rbp + 0x74], 2
je 0x140379a0a
mov dword [rbp + 0x68], eax
mov rbp, qword [rbx + 0x30]
mov dword [rbp + 0x6c], eax
mov rbp, qword [rbx + 0xd8]
test rbp, rbp
je 0x1403799fd
xor esi, esi
mov qword [rbp + 8], rsi
mov qword [rbx + 0xd8], rsi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebp, byte [rbx + 0x29e]
mov rsi, rsp
and ebp, 0x10
mov rcx, rbx
movzx r8d, byte [rbx + 0x294]
mov edx, 0xffffffff
shr ebp, 1
and r8d, 7
or r8d, ebp
mov r9d, eax
mov dword [rsi + 0x20], eax
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
inc qword [rbx + 0x148]
and byte [rbx + 0x297], 0xfb
mov rbp, qword [rsp + 0x58]
mov r10b, byte [rsp + 0xb0]
mov dil, r10b
mov al, byte [rbp + 0x294]
and dil, 1
and al, 0xfe
and r10b, 2
or al, dil
mov byte [rbp + 0x294], al
mov bpl, byte [rsp + 0xb2]
shr bpl, 5
and bpl, 1
shl bpl, 2
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x50], 0
mov bl, byte [r9 + 0x294]
and bl, 0xfb
or bl, bpl
mov byte [r9 + 0x294], bl
mov rdi, qword [rsp + 0x58]
movzx ebp, byte [rsp + 0xb3]
mov r11b, byte [rdi + 0x294]
and r11b, 0xfd
or r11b, r10b
mov byte [rdi + 0x294], r11b
mov edi, ebp
mov rbx, qword [rsp + 0x58]
shr edi, 1
and edi, 1
movzx eax, byte [rbx + 0x297]
shl edi, 3
and eax, 0xfffffff7
or eax, edi
xor edi, edi
mov byte [rbx + 0x297], al
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x118], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x1c0], rdi
mov rax, qword [rsp + 0x58]
and byte [rax + 0x29d], 0xf7
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0x168]
mov qword [rbx + 0x160], rax
test ebp, 0x80
jne 0x140379b42
mov rbx, qword [rsp + 0x58]
jmp 0x140379cf6
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb4]
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
test rbx, rbx
je 0x140379ced
test al, 0x20
je 0x140379b78
or byte [rbx + 0x29b], 0x40
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29d], 0xbf
mov bpl, byte [rsp + 0x51]
test bpl, 0x20
je 0x140379b96
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29d], 0x40
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29d], 0x7f
test bpl, 0x40
je 0x140379bb4
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29d], 0x80
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29e], 0xef
test bpl, 0x80
je 0x140379bd2
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29e], 0x10
mov rbx, qword [rsp + 0x58]
mov bpl, byte [rsp + 0x52]
and byte [rbx + 0x29e], 0xdf
test bpl, 1
je 0x140379bf5
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29e], 0x20
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29e], 0xbf
test bpl, 2
je 0x140379c13
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29e], 0x40
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29e], 0x7f
test bpl, 4
je 0x140379c31
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29e], 0x80
mov rbx, qword [rsp + 0x58]
and byte [rbx + 0x29f], 0xfe
test bpl, 8
je 0x140379c4f
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x29f], 1
test al, 0x10
je 0x140379ce8
mov rax, qword [rsp + 0x30]
lea rbp, [rax + 8]
mov qword [rsp + 0x30], rbp
add rax, 0x10
mov rbx, qword [rbp - 8]
mov qword [rsp + 0x30], rax
mov rbp, qword [rbp]
cmp byte [rbx], 0x38
je 0x14037b34f
cmp byte [rbx], 0xb
je 0x14037af9b
cmp byte [rbx], 0x38
je 0x14037aea9
cmp byte [rbx], 0x38
je 0x14037ade3
cmp byte [rbx], 0x38
je 0x14037acef
cmp byte [rbx], 0x38
je 0x14037abbc
cmp byte [rbx], 0x38
je 0x14037aaf6
cmp byte [rbx], 0x38
je 0x14037aa1e
cmp byte [rbx], 1
je 0x140379ce8
mov ecx, 8
mov edx, 2
lea r8, str.for_wseq_lis.c
mov r9d, 0x3cb
mov qword [rsp + 0x30], 0
call fcn.140383960
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x30], 0
mov dword [rbx + 0x220], 0
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x140379d16
movzx eax, word [r9 + 0x27a]
test eax, eax
jg 0x140379d26
mov dword [r9 + 0x224], 0
mov r9, qword [rsp + 0x58]
test byte [r9 + 0x291], 0x20
jne 0x14037a114
cmp dword [r9 + 0x1e0], 0xfffffffb
je 0x14037a114
mov r10b, byte [rsp + 0xb0]
shr r10b, 7
mov al, byte [rsp + 0xb2]
shr al, 2
mov r11b, byte [r9 + 0x290]
and al, 1
and r11b, 0xfe
add al, al
or r11b, r10b
mov byte [r9 + 0x290], r11b
mov rbx, qword [rsp + 0x58]
mov bpl, byte [rsp + 0xb3]
mov r9b, byte [rbx + 0x290]
and r9b, 0xfd
or r9b, al
mov al, bpl
shr al, 3
and al, 1
mov byte [rbx + 0x290], r9b
mov r9b, al
shl r9b, 2
mov r10, qword [rsp + 0x58]
mov bl, byte [r10 + 0x290]
and bl, 0xfb
or bl, r9b
mov r9b, bpl
shr r9b, 2
and r9b, 1
shl r9b, 3
mov byte [r10 + 0x290], bl
mov r10, qword [rsp + 0x58]
mov bl, byte [r10 + 0x290]
and bl, 0xf7
or bl, r9b
mov r9b, bpl
shr r9b, 6
and r9b, 1
shl r9b, 4
mov byte [r10 + 0x290], bl
mov r10, qword [rsp + 0x58]
mov bl, byte [r10 + 0x290]
and bl, 0xef
or bl, r9b
mov r9b, al
shl r9b, 5
shl al, 3
mov byte [r10 + 0x290], bl
mov r10, qword [rsp + 0x58]
mov bl, byte [r10 + 0x290]
and bl, 0xdf
or bl, r9b
mov r9b, bpl
shr r9b, 4
shr bpl, 5
and r9b, 1
and bpl, 1
shl r9b, 2
mov byte [r10 + 0x290], bl
mov r10, qword [rsp + 0x58]
mov bl, byte [r10 + 0x299]
and bl, 0xfb
or bl, r9b
mov byte [r10 + 0x299], bl
mov rbx, qword [rsp + 0x58]
mov r9b, byte [rbx + 0x299]
and r9b, 0xf7
or r9b, al
mov al, bpl
shl al, 6
shl bpl, 7
mov byte [rbx + 0x299], r9b
mov rbx, qword [rsp + 0x58]
mov r9b, byte [rbx + 0x290]
and r9b, 0xbf
or r9b, al
mov byte [rbx + 0x290], r9b
mov r9, qword [rsp + 0x58]
mov bl, byte [rsp + 0x50]
mov al, byte [r9 + 0x290]
and al, 0x7f
or al, bpl
mov byte [r9 + 0x290], al
mov al, bl
mov rbp, qword [rsp + 0x58]
and al, 1
mov r9b, byte [rbp + 0x291]
and r9b, 0xfe
or r9b, al
mov al, bl
shr al, 1
and al, 1
shl al, 5
mov byte [rbp + 0x291], r9b
mov rbp, qword [rsp + 0x58]
mov r9b, byte [rbp + 0x299]
and r9b, 0xdf
or r9b, al
mov al, bl
shr al, 2
and bl, 0x80
mov byte [rbp + 0x299], r9b
and al, 3
mov rbp, qword [rsp + 0x58]
add al, al
mov r9b, byte [rbp + 0x291]
and r9b, 0xf9
or r9b, al
mov al, byte [rsp + 0x51]
mov byte [rbp + 0x291], r9b
mov r9b, al
shr r9b, 1
and r9b, 1
shl r9b, 3
mov r10, qword [rsp + 0x58]
mov bpl, byte [r10 + 0x29c]
and bpl, 0xf7
or bpl, r9b
mov byte [r10 + 0x29c], bpl
mov rbp, qword [rsp + 0x58]
mov r9b, byte [rbp + 0x29b]
and r9b, 0x7f
or r9b, bl
mov byte [rbp + 0x29b], r9b
mov r9b, al
shr r9b, 6
shl r9b, 7
mov rbp, qword [rsp + 0x58]
mov bl, byte [rbp + 0x29d]
and bl, 0x7f
or bl, r9b
mov r9b, al
shr r9b, 3
mov byte [rbp + 0x29d], bl
and r9b, 0xf0
mov rbp, qword [rsp + 0x58]
mov bl, byte [rbp + 0x29e]
and bl, 0xef
or bl, r9b
mov r9b, byte [rsp + 0x52]
mov byte [rbp + 0x29e], bl
mov bl, r9b
and bl, 1
shl bl, 5
mov r10, qword [rsp + 0x58]
mov bpl, byte [r10 + 0x29e]
and bpl, 0xdf
or bpl, bl
mov bl, r9b
shr bl, 1
and bl, 1
shl bl, 6
mov byte [r10 + 0x29e], bpl
mov r10, qword [rsp + 0x58]
mov bpl, byte [r10 + 0x29e]
and bpl, 0xbf
or bpl, bl
mov bl, r9b
shr bl, 2
shr r9b, 3
shl bl, 7
mov byte [r10 + 0x29e], bpl
and r9b, 1
mov r10, qword [rsp + 0x58]
mov bpl, byte [r10 + 0x29e]
and bpl, 0x7f
or bpl, bl
mov byte [r10 + 0x29e], bpl
mov rbp, qword [rsp + 0x58]
mov bl, byte [rbp + 0x29f]
and bl, 0xfe
or bl, r9b
mov byte [rbp + 0x29f], bl
mov rcx, qword [rsp + 0x58]
mov bl, byte [rcx + 0x29c]
test bl, 0x10
jne 0x14037a060
shr al, 2
and bl, 0xef
and al, 1
shl al, 4
or bl, al
mov byte [rcx + 0x29c], bl
mov rcx, qword [rsp + 0x58]
mov edx, 1
mov r8d, 4
mov r9d, edx
call fcn.14036de40
test eax, eax
je 0x14037a10f
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037b392
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037a0c3
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebx, byte [r9 + 0x29e]
mov rbp, rsp
and ebx, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr ebx, 1
and r8d, 7
or r8d, ebx
mov r9d, eax
mov dword [rbp + 0x20], eax
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r9, qword [rsp + 0x58]
test byte [r9 + 0x29c], 0x10
je 0x14037a144
mov rax, qword [r9 + 0x1b0]
mov qword [r9 + 0x1c8], rax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rbp + 0x1b0]
mov qword [rbp + 0x270], rbx
mov r9, qword [rsp + 0x58]
test byte [r9 + 0x291], 0x40
jne 0x14037b7f0
mov bl, byte [r9 + 0x293]
test bl, 0x10
jne 0x14037b731
test byte [r9 + 0x292], 0x40
jne 0x14037a231
cmp esi, 0xfffffffb
je 0x14037a231
test r9, r9
je 0x14037a18e
movzx eax, word [r9 + 0x27a]
test eax, eax
jg 0x14037a231
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b3ae
test byte [rax + 0x74], 2
je 0x14037a1eb
mov dword [rax + 0x68], 0x101
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x30]
mov dword [rdx + 0x6c], 0x1f
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + 0xd8]
test rax, rax
je 0x14037a1d9
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x101
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x101
mov dword [rbx + 0x20], 0x1f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
test bl, 8
je 0x14037a2eb
test byte [r9 + 0x290], 4
jne 0x14037a2eb
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b3d0
test byte [rax + 0x74], 2
je 0x14037a2a5
mov dword [rax + 0x68], 0x103
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x30]
mov dword [rdx + 0x6c], 0x1f
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + 0xd8]
test rax, rax
je 0x14037a293
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x103
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x103
mov dword [rbx + 0x20], 0x1f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [r9 + 0xc8]
pxor xmm0, xmm0
movdqu xmmword [rbp], xmm0
movdqu xmmword [rbp + 0x10], xmm0
movdqu xmmword [rbp + 0x20], xmm0
movdqu xmmword [rbp + 0x30], xmm0
movdqu xmmword [rbp + 0x40], xmm0
mov sil, byte [rbp + 0x4b]
mov bl, byte [rsp + 0x51]
and sil, 0xef
and bl, 0x10
mov rax, qword [rsp + 0x58]
or sil, bl
mov qword [rbp], rax
mov byte [rbp + 0x4b], sil
mov rbx, qword [rsp + 0x58]
test byte [rbx + 0x293], 4
je 0x14037a452
mov rax, qword [rbx + 0x160]
cmp rax, qword [rbx + 0x168]
je 0x14037a41e
test byte [rbx + 0x295], 4
jne 0x14037b4e9
mov rdx, qword [rbx + 0x160]
lea r8, [rsp + 0x34]
mov rcx, qword [rbx + 0x1a0]
xor r9d, r9d
mov qword [r8 - 4], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
mov ebx, eax
cmp eax, 0xffffffff
je 0x14037b4c7
mov eax, dword [rsp + 0x34]
shl rax, 0x20
or rax, rbx
cmp rax, 0xffffffffffffffff
je 0x14037b3f2
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x14037a3bf
mov byte [rax + 0x32], 0
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0x160]
mov qword [rbx + 0x170], rax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsi + 0x160]
mov qword [rsi + 0x168], rbx
mov r9, qword [rsp + 0x58]
mov qword [r9 + 0x178], rdi
mov r11, qword [rsp + 0x58]
mov r10, qword [r11 + 0x178]
mov qword [r11 + 0x1b8], r10
mov rax, qword [rsp + 0x58]
and byte [rax + 0x295], 0xfd
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x140], rdi
mov rbx, qword [rsp + 0x58]
jmp 0x14037a446
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x14037a446
add qword [rbx + 0x170], rax
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x178], 0
mov rbx, qword [rsp + 0x58]
or byte [rbx + 0x295], 8
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14037a466
movzx eax, word [rbx + 0x27a]
test eax, eax
jg 0x14037a7e0
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x14037b6f7
cmp byte [rax + 0x32], 0
jne 0x14037a7e0
test rbx, rbx
je 0x14037a494
movzx eax, word [rbx + 0x27a]
test eax, eax
jg 0x14037a785
mov rcx, rbx
xor edx, edx
call fcn.1403d36d0
test eax, eax
je 0x14037a536
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x14037b6b3
test byte [rax + 0x74], 2
je 0x14037a4f1
mov edx, 0x26
mov dword [rax + 0x68], edx
mov rax, qword [rbx + 0x30]
mov dword [rax + 0x6c], edx
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037a4df
mov qword [rax + 8], rdi
mov qword [rbx + 0xd8], rdi
mov eax, 0x26
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [rbx + 0x29e]
mov rbp, rsp
and eax, 0x10
mov rcx, rbx
movzx r8d, byte [rbx + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x26
mov dword [rbp + 0x20], 0x26
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movsx esi, byte [rbx + 0x27c]
cmp esi, 8
ja 0x14037a6c3
lea r10, [0x140000000]
movzx eax, word [r10 + rsi*2 + 0x596100]
lea rax, [r10 + rax + 0x37a560]
jmp rax
mov ecx, 8
mov edx, 2
lea r8, str.for_wseq_lis.c
mov r9d, 0x46d
call fcn.140383960
mov r11b, byte [rbx + 0x290]
mov rax, qword [rbx + 0x80]
test r11b, 4
je 0x14037a70e
test byte [rbx + 0x292], 0x40
je 0x14037a70e
test byte [rbx + 0x293], 8
je 0x14037a70e
cmp byte [rbx + 0x27c], 1
je 0x14037a76e
mov sil, byte [rbx + 0x27e]
cmp sil, 2
jne 0x14037a73d
mov sil, byte [rbx + 0x27c]
cmp sil, 7
je 0x14037a76e
cmp sil, 6
je 0x14037a76e
cmp sil, 8
je 0x14037a76e
dec qword [rbx + 0x90]
jmp 0x14037a76e
cmp sil, 1
jne 0x14037a76e
mov sil, byte [rbx + 0x27c]
cmp sil, 7
je 0x14037a763
cmp sil, 6
je 0x14037a763
cmp sil, 8
je 0x14037a763
dec qword [rbx + 0x90]
add rax, 5
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x98], rax
mov qword [rbx + 0xa0], 0
mov rbx, qword [rsp + 0x58]
mov qword [rbx + 0xa0], 0
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x14037a7b9
mov edx, 0x20
mov r8, qword [rbx + 0x1c8]
call fcn.14042ad60
mov rbx, qword [rsp + 0x58]
jmp 0x14037a805
movzx eax, word [rbx + 0x27a]
test eax, eax
jg 0x14037a80a
mov edx, 0x20
mov rcx, qword [rbx + 0x78]
mov r8, qword [rbx + 0x1c8]
call fcn.14042ad60
mov rbx, qword [rsp + 0x58]
jmp 0x14037a805
mov qword [rbx + 0xa0], 0
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x14037a80a
mov byte [rax + 0x32], 0
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14037a815
movzx eax, word [rbx + 0x27a]
test eax, eax
jg 0x14037a81e
or byte [rbp + 0x4a], 0x10
mov rbx, qword [rsp + 0x58]
test byte [rbx + 0x290], 2
je 0x14037a880
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x14037b714
cmp byte [rax + 0x33], 0
je 0x14037a880
test rbx, rbx
je 0x14037a84d
movzx eax, word [rbx + 0x27a]
test eax, eax
jg 0x14037a880
mov rcx, qword [rbx + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x14037a880
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + 0x108]
test rax, rax
je 0x14037a879
mov byte [rax + 0x33], 0
mov rcx, qword [rsp + 0x58]
xor edx, edx
call fcn.1403d36d0
mov rcx, r14
mov rdx, r15
mov r8, qword [rsp + 0xc0]
call fcn.14037bad0
mov edx, dword [rbp + 0x28]
test edx, edx
cmovne eax, edx
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, esi
lea rdx, [rsp + 0x30]
call fcn.1403c1480
test eax, eax
jne 0x140379911
mov rsi, qword [rsp + 0x30]
xor ebx, ebx
mov r14b, byte [rsp + 0xb0]
and r14b, 1
mov qword [rsi + 0x118], rbx
mov r10, qword [rsp + 0x30]
mov qword [r10 + 0x1c0], rbx
mov r11, qword [rsp + 0x30]
and byte [r11 + 0x29d], 0xf7
mov rsi, qword [rsp + 0x30]
mov r15b, byte [rsi + 0x294]
and r15b, 0xfe
or r15b, r14b
mov byte [rsi + 0x294], r15b
mov sil, byte [rsp + 0x51]
shr sil, 3
mov r11, qword [rsp + 0x30]
and sil, 0xf0
mov r10b, byte [r11 + 0x29e]
and r10b, 0xef
or r10b, sil
mov byte [r11 + 0x29e], r10b
mov r10, qword [rsp + 0x30]
mov rsi, qword [rbp]
mov qword [r10 + 0x1c0], rsi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rbp + 8]
mov qword [rsi + 0x118], rbp
mov r9, qword [rsp + 0x30]
mov rbp, qword [r9 + 0x30]
test rbp, rbp
je 0x14037a9e6
test byte [rbp + 0x74], 2
je 0x14037a9a7
mov dword [rbp + 0x68], edi
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rbp + 0x30]
mov dword [rsi + 0x6c], edi
mov r10, qword [rsp + 0x30]
mov rbp, qword [r10 + 0xd8]
test rbp, rbp
je 0x14037a998
mov qword [rbp + 8], rbx
mov rbp, qword [rsp + 0x30]
mov qword [rbp + 0xd8], rbx
mov eax, edi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx ebx, byte [r9 + 0x29e]
mov rbp, rsp
and ebx, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr ebx, 1
and r8d, 7
or r8d, ebx
mov r9d, edi
mov dword [rbp + 0x20], edi
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
xor ecx, ecx
mov edx, edi
mov r8d, edi
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
mov edx, eax
mov r8d, eax
mov r9, rbx
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x53
jne 0x140379cbe
mov rax, rsp
mov r8d, 0x53
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037aa85
mov rbp, qword [rsp + 0x58]
add rbx, 4
mov al, byte [rbp + 0x28b]
mov byte [rbp + 0x28c], al
mov r9, qword [rsp + 0x58]
or byte [r9 + 0x29b], 0x20
mov r11, qword [rsp + 0x58]
mov r10d, dword [rsp + 0x48]
mov byte [r11 + 0x28b], r10b
jmp 0x140379cbe
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037aacd
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
mov edx, eax
mov r8d, eax
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x51
jne 0x140379cb5
mov rax, rsp
mov r8d, 0x51
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037ab63
mov r9, qword [rsp + 0x58]
add rbx, 4
add rbp, 0x10
mov al, byte [r9 + 0x287]
mov byte [r9 + 0x288], al
mov r10, qword [rsp + 0x58]
or byte [r10 + 0x29b], 0x10
mov rax, qword [rsp + 0x58]
mov r11d, dword [rsp + 0x48]
mov byte [rax + 0x287], r11b
jmp 0x140379cb5
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037abaf
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x3c
jne 0x140379cac
mov al, byte [rsp + 0x52]
test al, 8
je 0x14037abd4
test al, 2
jne 0x14037abde
jmp 0x14037abea
test byte [rsp + 0xb2], 4
jne 0x14037abea
mov ecx, 0x2fc
xor edx, edx
call fcn.140383960
mov rax, rsp
mov r8d, 0x3c
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037ac96
mov r10, qword [rsp + 0x58]
mov al, byte [r10 + 0x296]
mov r9b, al
shr al, 1
and r9b, 0xfb
and al, 1
shl al, 2
or r9b, al
mov byte [r10 + 0x296], r9b
mov r11, qword [rsp + 0x58]
or byte [r11 + 0x29b], 8
mov rax, qword [rsp + 0x48]
cmp rax, 2
jne 0x14037ac79
mov al, byte [rsp + 0xb2]
shr al, 2
mov r10, qword [rsp + 0x58]
and al, 1
add al, al
mov r9b, byte [r10 + 0x296]
and r9b, 0xfd
or r9b, al
mov byte [r10 + 0x296], r9b
jmp 0x14037ac89
cmp rax, 1
mov rax, qword [rsp + 0x58]
and byte [rax + 0x296], 0xfd
add rbx, 4
add rbp, 0x10
jmp 0x140379cac
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037ace2
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x3b
jne 0x140379ca3
mov rax, rsp
mov r8d, 0x3b
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037ad8a
mov r9, qword [rsp + 0x58]
mov al, byte [r9 + 0x281]
mov byte [r9 + 0x282], al
mov r10, qword [rsp + 0x58]
or byte [r10 + 0x29b], 4
mov rax, qword [rsp + 0x48]
cmp rax, 2
je 0x14037ad71
cmp rax, 1
jne 0x14037ad5d
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x281], 0x27
jmp 0x14037ad7d
cmp rax, 3
jne 0x14037ad71
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x281], 0x22
jmp 0x14037ad7d
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x281], 0
add rbx, 4
add rbp, 0x10
jmp 0x140379ca3
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037add6
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x52
jne 0x140379c9a
mov rax, rsp
mov r8d, 0x52
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037ae50
mov r9, qword [rsp + 0x58]
add rbx, 4
add rbp, 0x10
mov al, byte [r9 + 0x289]
mov byte [r9 + 0x28a], al
mov r10, qword [rsp + 0x58]
or byte [r10 + 0x29b], 2
mov rax, qword [rsp + 0x58]
mov r11d, dword [rsp + 0x48]
mov byte [rax + 0x289], r11b
jmp 0x140379c9a
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037ae9c
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 6
jne 0x140379c91
mov rax, rsp
mov r8d, 6
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x48]
mov edx, dword [rbp]
mov dword [rax + 0x20], 3
call fcn.14036c700
test eax, eax
jne 0x14037af42
mov r10, qword [rsp + 0x58]
mov al, byte [r10 + 0x293]
mov r9b, al
shr al, 5
and r9b, 0xbf
and al, 1
shl al, 6
or r9b, al
mov byte [r10 + 0x293], r9b
mov r11, qword [rsp + 0x58]
or byte [r11 + 0x29b], 1
mov rax, qword [rsp + 0x48]
cmp rax, 1
je 0x14037af29
cmp rax, 2
jne 0x14037af29
mov rax, qword [rsp + 0x58]
or byte [rax + 0x293], 0x20
jmp 0x14037af35
mov rax, qword [rsp + 0x58]
and byte [rax + 0x293], 0xdf
add rbx, 4
add rbp, 0x10
jmp 0x140379c91
mov r9, qword [rsp + 0x58]
mov rbx, qword [r9 + 0x30]
test rbx, rbx
je 0x14037aada
test byte [rbx + 0x74], 2
je 0x14037a0d0
mov dword [rbx + 0x68], eax
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rcx + 0x30]
mov dword [rbx + 0x6c], eax
mov rbp, qword [rsp + 0x58]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14037af8e
mov qword [rcx + 8], rdi
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0xd8], rdi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x4f
jne 0x140379c88
mov r9, qword [rsp + 0x58]
test byte [r9 + 0x293], 4
jne 0x14037b11b
test byte [r9 + 0x291], 0x20
jne 0x14037b06f
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b203
test byte [rax + 0x74], 2
je 0x14037b020
mov edx, 0x6d
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b00e
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x6d
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x6d
mov qword [rsp + 0x30], 0
mov dword [rbx + 0x20], 0x6d
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b22b
test byte [rax + 0x74], 2
je 0x14037b0cc
mov dword [rax + 0x68], 0x6e
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x30]
mov dword [rdx + 0x6c], 0x1f
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + 0xd8]
test rax, rax
je 0x14037b0ba
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x6e
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x6e
mov qword [rsp + 0x30], 0
mov dword [rbx + 0x20], 0x1f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
test r9, r9
je 0x14037b12c
movzx eax, word [r9 + 0x27a]
test eax, eax
jg 0x14037b15a
mov rax, qword [rbp]
add rbp, 8
dec rax
mov qword [r9 + 0x160], rax
mov r9, qword [rsp + 0x58]
cmp qword [r9 + 0x160], 0
jl 0x14037b256
add rbx, 4
jmp 0x140379c88
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b327
test byte [rax + 0x74], 2
je 0x14037b1b4
mov edx, 0x10f
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b1a2
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x10f
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x10f
mov qword [rsp + 0x30], 0
mov dword [rbx + 0x20], 0x10f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x6d
mov ecx, 1
mov r8d, edx
mov qword [rsp + 0x30], 0
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
mov edx, 0x6e
mov r8d, 0x1f
mov qword [rsp + 0x30], 0
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b2ff
test byte [rax + 0x74], 2
je 0x14037b2b0
mov edx, 0x6f
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b29e
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x6f
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x6f
mov qword [rsp + 0x30], 0
mov dword [rbx + 0x20], 0x6f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x6f
mov ecx, 1
mov r8d, edx
mov qword [rsp + 0x30], 0
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x10f
mov ecx, 1
mov r8d, edx
mov qword [rsp + 0x30], 0
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx + 2], 0x4e
jne 0x140379c7f
mov r9, qword [rsp + 0x58]
add rbx, 4
mov rax, qword [rbp]
mov qword [r9 + 0x1c0], rax
mov r11, qword [rsp + 0x58]
mov r10, qword [rbp + 8]
add rbp, 0x10
mov qword [r11 + 0x118], r10
mov rax, qword [rsp + 0x58]
and byte [rax + 0x29d], 0xf7
jmp 0x140379c7f
mov ecx, 2
mov edx, eax
mov r8d, eax
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
mov edx, 0x101
mov r8d, 0x1f
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 1
mov edx, 0x103
mov r8d, 0x1f
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x58]
mov dword [rdx + 0x1a8], eax
mov r9, qword [rsp + 0x58]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b4a8
test byte [rax + 0x74], 2
je 0x14037b462
mov edx, 0x26
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b450
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x26
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x26
mov dword [rbx + 0x20], 0x26
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x26
mov ecx, 1
mov r8d, edx
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14037b4df
mov qword [rsp + 0x30], 0xffffffffffffffff
jmp 0x14037b3f2
mov rax, qword [rsp + 0x30]
jmp 0x14037a39b
mov rdx, qword [rbx + 0x78]
mov rsi, qword [rbx + 0x88]
mov r8, qword [rbx + 0x240]
sub rsi, rdx
test r8, r8
je 0x14037b50e
cmp rsi, r8
jbe 0x14037b5be
jmp 0x14037b521
cmp rsi, 0x20000
jbe 0x14037b5be
mov r8d, 0x20000
mov rax, rsi
mov qword [rsp + 0x30], r15
mov r15, r8
mov qword [rsp + 0x38], r12
mov r12, rax
mov qword [rsp + 0x40], r13
mov r13, rdx
mov r10, rsp
mov rdx, r13
mov rcx, qword [rbx + 0x1a0]
mov r8d, r15d
lea r9, [rsp + 0x50]
mov qword [r10 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14037b579
mov r15, qword [rsp + 0x30]
mov eax, 0xffffffff
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
jmp 0x14037b5ef
mov r10, qword [rbx + 0x240]
mov r11d, 0x20000
test r10, r10
mov edx, dword [rsp + 0x50]
cmovne r11, r10
mov eax, 1
sub r12, rdx
add r13, rdx
cmp r12, r11
cmovb r15, r12
test r12, r12
je 0x14037b5ad
test rdx, rdx
ja 0x14037b53c
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
jmp 0x14037b5ef
mov rax, rsp
mov r8d, esi
mov rcx, qword [rbx + 0x1a0]
lea r9, [rsp + 0x50]
mov qword [rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r10d, 0xffffffff
test eax, eax
mov eax, 1
cmove eax, r10d
mov r11, qword [rbx + 0x78]
mov r10, qword [rbx + 0x1c8]
mov qword [rbx + 0x88], r11
add r11, r10
mov r10, qword [rbx + 0x170]
add rsi, r10
and byte [rbx + 0x295], 0xfb
mov qword [rbx + 0x90], r11
mov qword [rbx + 0x158], 0
mov qword [rbx + 0x170], rsi
mov qword [rbx + 0x168], rsi
cmp eax, 0xffffffff
je 0x14037b644
mov rbx, qword [rsp + 0x58]
jmp 0x14037a361
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1a8], eax
mov r9, qword [rsp + 0x58]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b4a8
test byte [rax + 0x74], 2
je 0x14037b462
mov edx, 0x26
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b6a1
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x26
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x26
mov ecx, 1
mov r8d, edx
mov r9, rbx
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x14037a480
movzx eax, word [rbx + 0x27a]
test eax, eax
jle 0x14037a480
jmp 0x14037a7e0
test rbx, rbx
je 0x14037a880
movzx eax, word [rbx + 0x27a]
test eax, eax
jle 0x14037a880
jmp 0x14037a83d
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b7d1
test byte [rax + 0x74], 2
je 0x14037b78b
mov edx, 0x1f
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b779
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x1f
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x1f
mov dword [rbx + 0x20], 0x1f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x1f
mov ecx, 1
mov r8d, edx
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14037b890
test byte [rax + 0x74], 2
je 0x14037b84a
mov edx, 0x2f
mov dword [rax + 0x68], edx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 0x30]
mov dword [rcx + 0x6c], edx
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14037b838
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x58]
mov qword [rax + 0xd8], rdi
mov eax, 0x2f
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [r9 + 0x29e]
mov rbx, rsp
and eax, 0x10
mov rcx, r9
movzx r8d, byte [r9 + 0x294]
mov edx, 0xffffffff
shr eax, 1
and r8d, 7
or r8d, eax
mov r9d, 0x2f
mov dword [rbx + 0x20], 0x2f
call fcn.1403be580
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov edx, 0x2f
mov ecx, 1
mov r8d, edx
call fcn.140381780
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [rbx + 0x78]
mov al, byte [rbp + 5]
cmp al, 0x20
je 0x14037b8d9
cmp al, 0x2b
jne 0x14037b8c9
mov byte [rbp + 5], 0
mov dil, byte [rbx + 0x295]
and dil, 0xbf
mov byte [rbx + 0x295], dil
jmp 0x1403799a2
mov byte [rbp + 5], 0x24
mov dil, byte [rbx + 0x295]
jmp 0x14037b8c9
mov ecx, 0xfffffffa
lea rdx, [rsp + 0x58]
mov r8, r14
mov r9d, 5
call fcn.1403bf1e0
mov edi, eax
test edi, edi
je 0x140379940
lea rbx, [rsp + 0xc8]
mov qword [rsp + 0x30], rbx
movzx r10d, byte [rsp + 0xb3]
and r10d, 0x80
mov dword [rsp + 0x50], 0
shr r10d, 7
je 0x14037b93e
mov ebx, dword [rsp + 0xb4]
mov dword [rsp + 0x50], ebx
mov bl, byte [rsp + 0x51]
and bl, 0x80
shr bl, 7
mov bpl, byte [rsp + 0xb0]
and bpl, 1
or bpl, bl
je 0x14037b99f
test r10d, r10d
je 0x14037b98f
test byte [rsp + 0x50], 0x10
je 0x14037b98f
mov rbx, qword [rsp + 0x30]
lea rbp, [rbx + 8]
mov qword [rsp + 0x30], rbp
add rbx, 0x10
mov rsi, qword [rbp - 8]
mov qword [rsp + 0x30], rbx
mov rbp, qword [rbp]
cmp byte [rsi], 0x38
jne 0x14037b98f
cmp byte [rsi + 2], 0x4e
je 0x14037b9c6
movzx eax, di
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, edi
mov edx, 2
mov r8d, 0xfffffffb
lea r9, str.unknown
call fcn.140383960
mov qword [rsp + 0x30], 0
jmp 0x140379940
mov ecx, 0xfffffffb
lea rdx, [rsp + 0x30]
call fcn.1403c1480
test eax, eax
jne 0x14037b98f
mov rsi, qword [rsp + 0x30]
xor ebx, ebx
mov r14b, byte [rsp + 0xb0]
and r14b, 1
mov qword [rsi + 0x118], rbx
mov r10, qword [rsp + 0x30]
mov qword [r10 + 0x1c0], rbx
mov r11, qword [rsp + 0x30]
and byte [r11 + 0x29d], 0xf7
mov rsi, qword [rsp + 0x30]
mov r15b, byte [rsi + 0x294]
and r15b, 0xfe
or r15b, r14b
mov byte [rsi + 0x294], r15b
mov sil, byte [rsp + 0x51]
shr sil, 3
mov r11, qword [rsp + 0x30]
and sil, 0xf0
mov r10b, byte [r11 + 0x29e]
and r10b, 0xef
or r10b, sil
mov byte [r11 + 0x29e], r10b
mov r10, qword [rsp + 0x30]
mov rsi, qword [rbp]
mov qword [r10 + 0x1c0], rsi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rbp + 8]
mov qword [rsi + 0x118], rbp
mov r9, qword [rsp + 0x30]
mov rbp, qword [r9 + 0x30]
test rbp, rbp
je 0x14037a9e6
test byte [rbp + 0x74], 2
je 0x14037a9a7
mov dword [rbp + 0x68], edi
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rbp + 0x30]
mov dword [rsi + 0x6c], edi
mov r10, qword [rsp + 0x30]
mov rbp, qword [r10 + 0xd8]
test rbp, rbp
je 0x14037bab9
mov qword [rbp + 8], rbx
mov rbp, qword [rsp + 0x30]
mov qword [rbp + 0xd8], rbx
mov eax, edi
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret