Function at 0x1400998a4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov r13, rcx
lea rcx, [rax - 0x68]
call fcn.140058038
lea rcx, [rsp + 0x198]
xor r12d, r12d
mov qword [rsp + 0x128], r13
mov qword [rsp + 0x130], r12
call fcn.1400503f4
lea rcx, [rsp + 0x78]
call fcn.140058038
lea rcx, [rsp + 0x88]
call fcn.140058038
lea rcx, [rsp + 0x100]
call fcn.140058038
lea rcx, [rsp + 0xd0]
call fcn.140058038
mov r11, qword [rsp + 0x198]
lea r14d, [r12 + 1]
lea r8d, [r12 + 0x2c]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r9b, r14b
mov qword [rsp + 0x48], r11
call fcn.14006ece4
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.14005b95c
mov r9, qword [rsp + 0x78]
lea edx, [r12 + 9]
movzx eax, word [r9]
mov byte [rsp + 0x60], r12b
mov byte [rsp + 0x40], r12b
mov sil, r12b
mov rcx, r9
mov rbx, r12
lea edi, [rdx - 7]
lea r8d, [r12 + 0x20]
cmp ax, r12w
je 0x1400999be
cmp dx, ax
ja 0x140099998
cmp ax, 0xd
jbe 0x14009999e
cmp r8w, ax
jne 0x1400999a1
mov rbx, rcx
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x14009998d
cmp rbx, r12
je 0x1400999be
mov word [rbx], r12w
mov r9, qword [rsp + 0x78]
add rbx, rdi
mov ebp, 0x2a
mov qword [rsp + 0x198], r9
lea r15d, [rbp - 0x27]
cmp rbx, r12
je 0x140099acc
cmp bp, word [r9]
jne 0x140099acc
lea r13d, [rbp + 3]
cmp r13w, word [r9 + 2]
je 0x140099abf
lea rdx, [rsp + 0x198]
lea rcx, str.nobom
mov r8d, 6
call fcn.14005a810
cmp al, r12b
je 0x140099a1a
mov byte [rsp + 0x40], r14b
jmp 0x140099aad
lea rdx, [rsp + 0x198]
lea rcx, str.transonly
mov r8d, 0xa
call fcn.14005a810
cmp al, r12b
je 0x140099a40
mov byte [rsp + 0x60], r14b
jmp 0x140099aad
lea rdx, [rsp + 0x198]
lea rcx, [0x1400fbc80]
mov r8d, r15d
call fcn.14005a810
cmp al, r12b
je 0x140099a61
mov sil, r14b
jmp 0x140099aad
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx]
cmp ax, r12w
je 0x140099aa0
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x140099a86
cmp ax, 0xd
jbe 0x140099a98
cmp r8w, ax
je 0x140099a98
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x140099a7b
mov qword [rsp + 0x198], rcx
lea rcx, [rsp + 0x198]
call fcn.1400503f4
mov r9, qword [rsp + 0x198]
cmp bp, word [r9]
je 0x1400999e6
mov r9, qword [rsp + 0x78]
mov r13, qword [rsp + 0x190]
mov r15b, r12b
mov dil, r12b
mov byte [rsp + 0x59], r12b
mov byte [rsp + 0x198], r12b
mov bpl, r12b
mov byte [rsp + 0x1a8], r12b
cmp rbx, r12
je 0x140099b1f
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.14006252c
mov r11, qword [rsp + 0x68]
mov rax, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], r11
call fcn.140050424
mov r9, qword [rsp + 0x78]
cmp sil, r12b
je 0x14009a46d
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, r13
call fcn.140003720
mov rax, qword [rsp + 0x48]
mov r9d, 0x2c
lea r8d, [r9 - 0x2a]
cmp r9w, word [rax]
jne 0x140099b55
add rax, r8
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.1400503f4
mov rcx, qword [rsp + 0x48]
mov si, word [rcx]
cmp si, r12w
je 0x14009a420
add rcx, r8
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x48]
call fcn.1400503f4
mov rax, qword [rsp + 0x48]
cmp r9w, word [rax]
jne 0x140099b96
add rax, r8
mov qword [rsp + 0x48], rax
or qword [rsp + 0x68], 0xffffffffffffffff
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x198], r12
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xe0], r12
mov qword [rsp + 0xb0], 0xfffffffffffe0000
mov dword [rsp + 0x190], r14d
call fcn.140006b34
cmp eax, r12d
jle 0x14009a420
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x48]
call fcn.140006b10
cmp eax, r12d
jle 0x14009a420
mov r15d, dword [rsp + 0x190]
cmp r15d, r12d
jle 0x14009a420
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x48]
call fcn.140006b34
mov rbx, qword [rsp + 0x1a8]
cmp rbx, r12
jl 0x14009a420
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140006b34
lea rdi, [0x14010ee78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.140016218
cmp rax, r12
je 0x14009a417
mov rbp, qword [rax + 0x18]
movabs rcx, 0x3fffffffffffffff
and rbp, rcx
cmp rbx, rbp
jge 0x14009a417
cmp rbp, r12
jle 0x14009a417
mov r13, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov rcx, rbp
cmp r13, r12
mov qword [rsp + 0x190], rax
cmovle r13, rbp
sub rcx, rbx
cmp r13, rcx
cmovg r13, rcx
cmp rcx, r13
cmovg rcx, r13
cmp rcx, r12
mov qword [rsp + 0xe8], rcx
jle 0x14009a417
mov r14, qword [rsp + 0x198]
mov edx, 0x2b
lea rdi, [rax + rbx]
lea eax, [rdx + 2]
lea r9d, [rdx + 0x13]
cmp ax, si
jne 0x140099cfc
mov esi, edx
jmp 0x140099d0a
mov eax, 0x3c
cmp ax, si
jne 0x140099d0d
mov si, r9w
neg r14
mov ecx, 0x68
movzx eax, si
lea r8d, [rcx + 7]
or ax, 0x20
mov dword [rsp + 0x98], r8d
cmp cx, ax
je 0x140099d39
lea ecx, [r8 - 1]
cmp cx, ax
je 0x140099d39
cmp r8w, ax
jne 0x140099d3d
mov si, r8w
mov eax, 0x5e
lea ecx, [rax - 0x3b]
mov dword [rsp + 0xb8], ecx
cmp dx, si
je 0x140099d73
cmp ax, si
je 0x140099d73
cmp cx, si
je 0x140099d73
cmp r9w, si
je 0x140099d73
cmp r8w, si
je 0x140099d79
lea rcx, [0x14010ee78]
jmp 0x14009a41a
cmp r8w, si
jne 0x140099d80
cmp rbx, r14
cmovg rbx, r14
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x48]
call fcn.140006b34
mov rax, qword [rsp + 0xa8]
lea rdx, [rsp + 0xb0]
cmp rax, r12
lea rcx, [rsp + 0x48]
cmove rax, r13
mov qword [rsp + 0xc0], rax
call fcn.140006b34
mov r13, qword [rsp + 0xb0]
cmp r13, r12
jg 0x140099e00
cmp r13, 0xfffffffffffe0000
je 0x140099df4
mov rax, qword [rsp + 0xc0]
mov rcx, rax
neg rcx
cmp rax, r12
cmovg rcx, rax
sub rbp, rbx
mov rax, rbp
cqo
idiv rcx
mov r13, rax
cmp r13, r12
mov eax, 1
cmovle r13, rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x48]
call fcn.140006b34
mov r9, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xe0]
cmp rax, r12
mov ecx, r9d
mov r11d, r15d
cmove rax, qword [rsp + 0xc0]
sar r11d, 8
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xf0], rax
mov eax, r9d
and eax, 7
sub ecx, eax
mov dword [rsp + 0x70], eax
mov eax, 1
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x190]
add rcx, r14
cmp r11d, r12d
cmovle r11d, eax
mov qword [rsp + 0xd8], rcx
lea eax, [r11 + r11]
mov dword [rsp + 0x80], r11d
mov dword [rsp + 0x48], eax
movzx eax, r15b
mov r8, rax
mov dword [rsp + 0x1a8], eax
mov qword [rsp + 0x108], rax
mov rax, r9
cqo
idiv r8
mov rbx, rax
mov qword [rsp + 0xa8], rax
mov eax, 0x5e
cmp ax, si
mov qword [rsp + 0x118], rdx
mov eax, 0x3e
sete cl
cmp ax, si
mov eax, 2
movzx r10d, cl
cmove r10d, eax
mov eax, r8d
cdq
mov dword [rsp + 0x190], r10d
mov r10d, r8d
idiv r11d
movsxd r11, r11d
mov qword [rsp + 0x140], r11
cdqe
lea rcx, [rax - 1]
cqo
sub rax, rdx
sar rax, 1
mov rbp, rax
mov qword [rsp + 0xa0], rax
imul rcx, r11
mov qword [rsp + 0x110], rcx
mov rcx, r11
mov r11, r8
imul rcx, rax
sub r11, rcx
sub r13, 1
mov qword [rsp + 0x68], r13
mov qword [rsp + 0xb0], r11
js 0x14009a055
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xf0]
mov r15d, 8
mov rdx, rdi
cmp word [rsp + 0xb8], si
jne 0x14009a067
movsxd rdx, dword [rsp + 0x90]
mov rbp, rcx
add rdx, rcx
cmp rcx, rdx
jae 0x140099fa4
mov rax, qword [rdi]
mov rcx, qword [rbp]
mov qword [rbp], rax
add rbp, r15
mov qword [rdi], rcx
add rdi, r15
cmp rbp, rdx
jb 0x140099f83
mov rcx, qword [rsp + 0xd8]
movsxd rax, dword [rsp + 0x70]
cmp eax, r12d
jle 0x14009a00d
lea rcx, [rsp + 0x138]
mov r8, rax
mov rdx, rdi
mov rbx, rax
call fcn.14001aa74
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14001aa74
mov r8, rbx
lea rdx, [rsp + 0x138]
mov rcx, rbp
call fcn.14001aa74
mov r11, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xd8]
mov r9, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov r10d, dword [rsp + 0x1a8]
add rdx, r8
add rcx, rax
sub r13, 1
mov qword [rsp + 0xc8], rdx
mov rdi, rdx
mov qword [rsp + 0x68], r13
mov qword [rsp + 0xd8], rcx
jns 0x140099f62
lea rcx, [0x14010ee78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14009a427
cmp word [rsp + 0x98], si
jne 0x14009a17e
cmp qword [rsp + 0x140], 1
jg 0x14009a0f0
lea r9, [rbx - 1]
cmp r9, r12
jl 0x14009a40a
mov rax, qword [rsp + 0x110]
lea r10d, [rbp - 1]
mov r13d, 1
cmp r10d, r12d
lea rdx, [rax + rdi]
mov r8d, r10d
jl 0x14009a0c6
mov al, byte [rdx]
mov cl, byte [rdi]
mov byte [rdi], al
mov byte [rdx], cl
sub rdx, r13
add rdi, r13
sub r8d, r13d
jns 0x14009a0ab
mov rax, qword [rsp + 0x110]
add rdi, r11
sub r9, r13
jns 0x14009a09f
mov r13, qword [rsp + 0x68]
mov r9, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xf0]
jmp 0x14009a015
lea r10, [rbx - 1]
cmp r10, r12
jl 0x14009a025
mov rax, qword [rsp + 0x110]
mov r13d, dword [rsp + 0x80]
movsxd r15, dword [rsp + 0x48]
dec ebp
cmp ebp, r12d
lea rdx, [rax + rdi]
mov r9d, ebp
jl 0x14009a165
lea ebx, [r13 - 1]
mov r13d, 1
cmp ebx, r12d
mov r8d, ebx
jl 0x14009a145
mov al, byte [rdx]
mov cl, byte [rdi]
mov byte [rdi], al
mov byte [rdx], cl
add rdx, r13
add rdi, r13
sub r8d, r13d
jns 0x14009a132
sub rdx, r15
sub r9d, r13d
jns 0x14009a12a
mov r11, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x110]
mov r13d, dword [rsp + 0x80]
add rdi, r11
sub r10, 1
jns 0x14009a114
mov r13, qword [rsp + 0x68]
mov r15d, 8
jmp 0x140099fed
mov rax, qword [rsp + 0x118]
mov r13d, dword [rsp + 0x190]
mov r8, rdi
mov ebp, eax
cdqe
mov bl, r14b
sub r8, rax
mov r11d, r12d
mov dword [rsp + 0x198], r12d
add r8, r9
mov rax, r12
mov qword [rsp + 0xe0], r12
cmp r10d, r15d
mov qword [rsp + 0xf8], rax
jl 0x14009a233
and bl, 0x3f
mov r9d, 0x40
sub r9b, bl
cmp rdi, r8
jae 0x14009a397
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a223
sub ecx, r13d
je 0x14009a218
cmp ecx, r13d
jne 0x14009a226
mov rdx, qword [rdi]
mov cl, r9b
mov rax, rdx
shl rax, cl
mov cl, r14b
shr rdx, cl
or rax, rdx
mov qword [rdi], rax
jmp 0x14009a226
cmp r11w, si
jne 0x14009a226
xor qword [rdi], r14
jmp 0x14009a226
add qword [rdi], r14
add rdi, r15
cmp rdi, r8
jb 0x14009a1ec
jmp 0x14009a379
cmp r10d, 4
jl 0x14009a2a4
and bl, 0x1f
mov r9d, 0x20
sub r9b, bl
cmp rdi, r8
jae 0x14009a397
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a294
sub ecx, r13d
je 0x14009a289
cmp ecx, r13d
jne 0x14009a297
mov edx, dword [rdi]
mov cl, r9b
mov eax, edx
shl eax, cl
mov cl, bl
shr edx, cl
or eax, edx
mov dword [rdi], eax
jmp 0x14009a297
cmp r11w, si
jne 0x14009a297
xor dword [rdi], r14d
jmp 0x14009a297
add dword [rdi], r14d
add rdi, r15
cmp rdi, r8
jb 0x14009a264
jmp 0x14009a379
cmp r10d, 2
jl 0x14009a31a
and bl, 0xf
mov r9d, 0x10
sub r9b, bl
cmp rdi, r8
jae 0x14009a397
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a30c
sub ecx, r13d
je 0x14009a300
cmp ecx, r13d
jne 0x14009a310
movzx edx, word [rdi]
mov cl, r9b
movzx eax, dx
shl ax, cl
mov cl, bl
shr dx, cl
or ax, dx
mov word [rdi], ax
jmp 0x14009a310
cmp r11w, si
jne 0x14009a310
xor word [rdi], r14w
jmp 0x14009a310
add word [rdi], r14w
add rdi, r15
cmp rdi, r8
jb 0x14009a2d5
jmp 0x14009a379
and bl, 7
mov r9d, r15d
sub r9b, bl
cmp rdi, r8
jae 0x14009a397
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a36e
sub ecx, r13d
je 0x14009a363
cmp ecx, r13d
jne 0x14009a371
mov dl, byte [rdi]
mov cl, r9b
mov al, dl
shl al, cl
mov cl, bl
shr dl, cl
or al, dl
mov byte [rdi], al
jmp 0x14009a371
cmp r11w, si
jne 0x14009a371
xor byte [rdi], r14b
jmp 0x14009a371
add byte [rdi], r14b
add rdi, r15
cmp rdi, r8
jb 0x14009a33e
mov r13d, dword [rsp + 0x190]
mov rax, qword [rsp + 0xf8]
mov r11d, dword [rsp + 0x198]
mov r15d, 8
cmp ebp, r12d
jle 0x14009a3e9
mov ecx, 0x3e
cmp cx, si
je 0x14009a3e9
lea rcx, [rsp + 0xe0]
movsxd r8, ebp
mov rdx, rdi
call fcn.14001aa74
mov rcx, qword [rsp + 0x108]
mov rax, rdi
mov r11d, ebp
mov dword [rsp + 0x198], ebp
lea rdi, [rsp + 0xe0]
lea r8, [rsp + rcx + 0xe0]
mov ebp, r12d
mov r10d, ecx
jmp 0x14009a1b4
mov r13, qword [rsp + 0x68]
cmp r11d, r12d
je 0x140099fe5
movsxd r8, r11d
lea rdx, [rsp + 0xe0]
mov rcx, rax
jmp 0x140099fe0
mov r9, qword [rsp + 0xe8]
jmp 0x14009a025
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, 0xffffffff80070057
lea rcx, [rsp + 0xd0]
call fcn.140050424
lea rcx, [rsp + 0x100]
call fcn.140050424
lea rcx, [rsp + 0x88]
call fcn.140050424
lea rcx, [rsp + 0x78]
call fcn.140050424
lea rcx, [rsp + 0x120]
call fcn.140050424
mov rax, r12
jmp 0x14009b386
mov rax, qword [rsp + 0x48]
mov esi, 0x2c
lea rcx, [rax + 2]
mov qword [rsp + 0x118], rcx
cmp si, word [rax]
jne 0x14009a50d
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
call fcn.14006ece4
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rax
call fcn.14005ba88
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x14009a50d
lea ebx, [rsi - 0x2a]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
add rax, rbx
mov r8d, esi
mov r9b, r14b
mov qword [rsp + 0x48], rax
call fcn.14006ece4
lea rdx, [rsp + 0x100]
mov rcx, rax
xor r8d, r8d
call fcn.14005b95c
mov r9, qword [rsp + 0x78]
mov rax, qword [rsp + 0x48]
jmp 0x14009a512
mov ebx, 2
cmp si, word [rax]
jne 0x14009a54f
add rax, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
mov qword [rsp + 0x48], rax
call fcn.14006ece4
lea rdx, [rsp + 0xd0]
xor r8d, r8d
mov rcx, rax
call fcn.14005b95c
mov r9, qword [rsp + 0x78]
cmp word [r9], r12w
je 0x14009b345
mov rax, qword [rsp + 0x88]
cmp word [rax], r12w
je 0x14009b345
mov r10, qword [rsp + 0x100]
cmp word [r10], r12w
je 0x14009b345
mov rsi, qword [rsp + 0xd0]
cmp word [rsi], r12w
je 0x14009b345
mov eax, 0x2a
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x74], r12d
mov dword [rsp + 0x98], r12d
mov r14d, r12d
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x90], r12d
mov dword [rsp + 0x70], r12d
mov r11, r12
mov byte [rsp + 0x58], r12b
cmp ax, word [r9]
jne 0x14009a601
cmp ax, word [r9 + 2]
jne 0x14009a5f1
mov r15b, byte [r9]
add r9, 4
mov byte [rsp + 0x59], bl
mov dil, r15b
cmp ax, word [r9]
jne 0x14009a601
add r9, rbx
mov byte [rsp + 0x59], 3
jmp 0x14009a601
cmp ax, word [r9]
jne 0x14009a601
mov r15b, byte [r9]
add r9, 2
mov dil, r15b
mov eax, 0x2d
cmp ax, word [r9]
jne 0x14009a612
mov dil, byte [r9]
add r9, rbx
cmp dil, r12b
je 0x14009a420
lea rcx, [0x1400fbc7c]
mov rdx, r9
call fcn.140051974
mov edi, 0x4b1
cmp al, r12b
je 0x14009a643
mov edi, 1
mov byte [rsp + 0x58], dil
jmp 0x14009a798
lea rcx, str.ANSI
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a664
mov dword [rsp + 0x98], r12d
jmp 0x14009a778
lea rcx, [0x1400fbc78]
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a688
mov dword [rsp + 0x98], 0x3a8
jmp 0x14009a778
lea rcx, str.BIG5
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a6ac
mov dword [rsp + 0x98], 0x3b6
jmp 0x14009a778
lea rcx, str.UTF8
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a6d0
mov dword [rsp + 0x98], 0xfde9
jmp 0x14009a778
lea rcx, str.UTF7
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a6f4
mov dword [rsp + 0x98], 0xfde8
jmp 0x14009a778
lea rcx, str.UNICODE
mov rdx, r9
call fcn.140051974
cmp al, r12b
jne 0x14009a71c
lea rcx, [0x1400f16f4]
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a729
mov edi, 1
mov r14d, 0x4b0
jmp 0x14009a798
lea rcx, str.UNICODEB
mov rdx, r9
call fcn.140051974
cmp al, r12b
jne 0x14009a751
lea rcx, str.UNIB
mov rdx, r9
call fcn.140051974
cmp al, r12b
je 0x14009a756
mov r14d, edi
jmp 0x14009a778
movzx eax, word [r9]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x14009a77f
mov rcx, r9
call fcn.1400592a0
mov qword [rsp + 0x98], rax
mov edi, 1
jmp 0x14009a798
cmp word [r9], r12w
jne 0x14009a420
mov edi, 1
mov r14d, edi
mov dword [rsp + 0x80], edi
mov eax, 0x2a
cmp ax, word [r10]
jne 0x14009a7d1
cmp ax, word [r10 + 2]
jne 0x14009a7ba
mov al, byte [r10]
add r10, 4
mov byte [rsp + 0x1a8], al
jmp 0x14009a7c7
cmp ax, word [r10]
jne 0x14009a7d1
mov al, byte [r10]
add r10, 2
mov bpl, al
mov byte [rsp + 0x198], al
mov eax, 0x2d
cmp ax, word [r10]
jne 0x14009a7e2
mov bpl, byte [r10]
add r10, rbx
cmp bpl, r12b
je 0x14009a420
lea rcx, str.ANSI
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a809
mov dword [rsp + 0x5c], r12d
jmp 0x14009a947
lea rcx, [0x1400fbc78]
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a82a
mov dword [rsp + 0x5c], 0x3a8
jmp 0x14009a947
lea rcx, str.BIG5
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a84b
mov dword [rsp + 0x5c], 0x3b6
jmp 0x14009a947
lea rcx, str.UTF8
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a87b
mov dword [rsp + 0x5c], 0xfde9
lea r11, [0x1400f7370]
mov dword [rsp + 0x70], 3
jmp 0x14009a947
lea rcx, str.UTF7
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a89c
mov dword [rsp + 0x5c], 0xfde8
jmp 0x14009a947
lea rcx, str.UNICODE
mov rdx, r10
call fcn.140051974
cmp al, r12b
jne 0x14009a8c4
lea rcx, [0x1400f16f4]
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a8d5
mov dword [rsp + 0x74], 0x4b0
lea r11, [0x1400f7368]
jmp 0x14009a90c
lea rcx, str.UNICODEB
mov rdx, r10
call fcn.140051974
cmp al, r12b
jne 0x14009a8fd
lea rcx, str.UNIB
mov rdx, r10
call fcn.140051974
cmp al, r12b
je 0x14009a912
mov dword [rsp + 0x74], 0x4b1
lea r11, [0x1400f736c]
mov dword [rsp + 0x70], ebx
jmp 0x14009a947
movzx eax, word [r10]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x14009a932
mov rcx, r10
call fcn.1400592a0
mov dword [rsp + 0x5c], eax
jmp 0x14009a947
cmp word [r10], r12w
jne 0x14009a420
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x90], edi
cmp byte [rsp + 0x40], r12b
lea rcx, [rsp + 0x50]
mov rbx, r12
cmovne r11, r12
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0xb0], r11
call fcn.140057d5c
mov ebp, r12d
cmp r15b, r12b
jne 0x14009ac25
mov rax, qword [rsp + 0x118]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, 0x2c
mov r9b, dil
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x48], rax
call fcn.14006ece4
lea rdx, [rsp + 0x88]
mov rcx, rax
xor r8d, r8d
call fcn.14005b95c
mov rcx, qword [rsp + 0x88]
call fcn.140019058
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x68]
mov r9d, 7
mov r8d, 0x80000000
mov rdx, rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.140003588
mov rdi, qword [rsp + 0x68]
cmp rdi, r12
jne 0x14009aa18
lea rcx, [rsp + 0x50]
call fcn.140050424
mov r12d, 1
jmp 0x14009a427
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140051824
mov r13d, 1
xor edx, edx
mov r8d, r13d
mov rcx, rdi
call fcn.140051824
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r15, rax
call fcn.140051824
lea r11d, [r15 + 0xa]
lea rcx, [rsp + 0x50]
movsxd rdx, r11d
call fcn.140057e3c
mov r11, qword [rsp + 0x50]
lea r9, [rsp + 0xb8]
mov byte [r11 + 2], r12b
mov rcx, qword [rsp + 0x50]
mov r8d, r15d
mov byte [rcx + 1], r12b
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], r12
mov byte [rcx], r12b
mov rdx, qword [rsp + 0x50]
or dword [rsp + 0xb8], 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x68], rdx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rbp, dword [rsp + 0xb8]
cmp ebp, r12d
jge 0x14009aacd
cmp rdi, 0xffffffffffffffff
je 0x14009aabb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140050424
mov r12, r13
jmp 0x14009a427
mov rax, qword [rsp + 0x50]
mov r10b, byte [rsp + 0x58]
mov r13d, r12d
mov byte [rbp + rax + 2], r12b
mov rax, qword [rsp + 0x50]
mov byte [rbp + rax + 1], r12b
mov rax, qword [rsp + 0x50]
mov byte [rbp + rax], r12b
cmp r10b, r12b
jne 0x14009ab01
cmp r14d, 0x4b0
jne 0x14009ab35
mov r9, qword [rsp + 0x68]
mov r11d, 2
lea rdx, [0x1400f7368]
mov rcx, r9
mov r8, r11
call fcn.140050454
cmp eax, r12d
jne 0x14009ab2e
mov r14d, 0x4b0
mov r13d, r11d
jmp 0x14009aba5
cmp r10b, r12b
jne 0x14009ab49
jmp 0x14009ab40
mov r9, qword [rsp + 0x68]
mov r11d, 2
cmp r14d, 0x4b1
jne 0x14009ab6d
lea rdx, [0x1400f736c]
mov r8, r11
mov rcx, r9
call fcn.140050454
cmp eax, r12d
jne 0x14009ab68
mov r14d, 0x4b1
jmp 0x14009ab29
cmp r10b, r12b
jne 0x14009ab7a
cmp dword [rsp + 0x98], 0xfde9
jne 0x14009abbb
lea rdx, [0x1400f7370]
mov r8d, 3
mov rcx, r9
call fcn.140050454
cmp eax, r12d
jne 0x14009abbb
mov dword [rsp + 0x98], 0xfde9
mov r13d, 3
movsxd rax, r13d
mov rcx, r9
sub r15, rax
lea rdx, [r9 + rax]
lea r8, [r15 + 3]
call fcn.14001aa2c
sub ebp, r13d
cmovs ebp, r12d
cmp rdi, 0xffffffffffffffff
je 0x14009abd1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, bl
mov r9d, 2
cmp ebp, r12d
jl 0x14009aa03
cmp byte [rsp + 0x58], r12b
je 0x14009adae
cmp dil, r12b
je 0x14009adae
mov r13, qword [rsp + 0x50]
lea rdx, [0x1400f7368]
mov r8, r9
mov rcx, r13
mov edi, r12d
call fcn.140050454
cmp eax, r12d
jne 0x14009ad3e
mov r14d, 0x4b0
jmp 0x14009ad85
mov dil, byte [rsp + 0x59]
cmp dil, r12b
je 0x14009ace9
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, r13
call fcn.140003720
mov rdx, qword [rsp + 0x88]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.140016218
mov r15d, 8
lea rcx, [rsp + 0x50]
mov r13, rax
cmp rax, r12
je 0x14009acc7
cmp dil, 3
jne 0x14009ac8b
mov rdx, qword [rax + 8]
call fcn.14005d114
mov dil, 2
mov ebp, eax
jmp 0x14009acd2
movsxd rbp, dword [rax + 0x18]
lea eax, [rbp + 8]
movsxd rdx, eax
call fcn.140057e3c
mov rax, qword [rsp + 0x50]
mov r8, r15
lea rcx, [rbp + rax]
xor edx, edx
mov rdi, rbp
call fcn.1400d3e60
mov rdx, qword [r13 + 8]
mov rcx, qword [rsp + 0x50]
mov r8, rbp
call fcn.14001aa74
mov dil, 1
jmp 0x14009acd2
mov rdx, r15
call fcn.140057e3c
mov dil, bl
movsxd rcx, ebp
mov r8, r15
xor edx, edx
add rcx, qword [rsp + 0x50]
call fcn.1400d3e60
jmp 0x14009abd4
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
cmp dword [rsp + 0x80], r12d
je 0x14009ad29
call fcn.140062644
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov ebp, eax
add ebp, ebp
lea eax, [rbp + 8]
movsxd rdx, eax
call fcn.140057e3c
jmp 0x14009ad30
call fcn.14005d114
mov ebp, eax
mov r9d, 2
mov dil, r9b
jmp 0x14009abda
lea rdx, [0x1400f736c]
mov r8, r9
mov rcx, r13
call fcn.140050454
cmp eax, r12d
jne 0x14009ad5d
mov r14d, 0x4b1
jmp 0x14009ad85
mov r9d, 3
lea rdx, [0x1400f7370]
mov rcx, r13
mov r8, r9
call fcn.140050454
cmp eax, r12d
jne 0x14009ada6
mov dword [rsp + 0x98], 0xfde9
mov eax, ebp
movsxd rdx, r9d
mov rcx, r13
sub eax, r9d
add rdx, r13
mov edi, r9d
add eax, 4
movsxd r8, eax
call fcn.14001aa2c
mov r13, qword [rsp + 0x50]
sub ebp, edi
cmovs ebp, r12d
jmp 0x14009adb3
mov r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r15, r13
call fcn.140058038
lea rcx, [rsp + 0x5c]
call fcn.140057b84
mov rdi, qword [rsp + 0x98]
cmp dword [rax], edi
jne 0x14009aead
lea rcx, [rsp + 0x74]
call fcn.140057b84
cmp dword [rax], r14d
jne 0x14009aead
cmp byte [rsp + 0x1a8], r12b
je 0x14009ae23
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x190]
lea rax, [rsp + 0xd0]
mov r9d, ebp
mov rdx, rsi
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], rax
call fcn.140066ba4
jmp 0x14009ae94
cmp byte [rsp + 0x198], r12b
jne 0x14009ae4c
mov rdx, qword [rsp + 0x50]
lea r9, [rsp + 0x190]
mov r8d, ebp
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14009ae94
cmp dword [rsp + 0x90], r12d
jne 0x14009ae6f
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8d, ebp
call fcn.14005d03c
mov r8, qword [rsp + 0x48]
jmp 0x14009ae84
mov r8, qword [rsp + 0x88]
cmp dword [rsp + 0x80], r12d
jne 0x14009ae84
mov r8, r13
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057714
lea rcx, [rsp + 0x48]
call fcn.140050424
lea rcx, [rsp + 0x50]
call fcn.140050424
jmp 0x14009a427
cmp r14d, 0x4b1
jne 0x14009aecb
mov rcx, qword [rsp + 0x50]
mov edx, ebp
mov r14d, 0x4b0
call fcn.140055ac0
and ebp, 0xfffffffe
cmp byte [rsp + 0x198], r12b
jne 0x14009af2f
mov rcx, rsi
call fcn.140019058
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0xa8]
mov r9d, 7
mov r8d, 0x40000000
mov rdx, rax
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r12
call fcn.140003588
mov rbx, qword [rsp + 0xa8]
cmp rbx, r12
jne 0x14009af2f
lea rcx, [rsp + 0x48]
call fcn.140050424
jmp 0x14009aa03
mov eax, 0x3a8
mov qword [rsp + 0x68], r12
cmp dword [rsp + 0x5c], eax
jne 0x14009af47
cmp edi, 0x3b6
je 0x14009af5d
cmp edi, eax
jne 0x14009b018
cmp dword [rsp + 0x5c], 0x3b6
jne 0x14009b018
movzx eax, byte [rsp + 0x60]
lea rcx, [rsp + 0xa0]
mov edi, eax
cmp al, r12b
mov eax, 3
cmovne edi, eax
call fcn.140057d5c
cmp dword [rsp + 0x5c], 0x3b6
mov rcx, qword [rsp + 0x50]
mov r8d, r12d
lea rdx, [rsp + 0xa0]
sete r8b
call fcn.14005d1c0
mov r11, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0xa0], r11
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r13, qword [rsp + 0x50]
mov ebp, eax
mov eax, 3
cmp dil, al
jne 0x14009b00b
cmp byte [rsp + 0x198], r12b
jne 0x14009b00b
cmp ebp, r12d
jle 0x14009aff9
lea r9, [rsp + 0x190]
mov r8d, ebp
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0xa0]
call fcn.140050424
jmp 0x14009b2c3
lea rcx, [rsp + 0xa0]
call fcn.140050424
movsxd rdi, ebp
shr rdi, 1
cmp r14d, r12d
jne 0x14009b071
lea edi, [rbp + 0xa]
lea rcx, [rsp + 0x48]
lea eax, [rdi + 0xa]
movsxd rdx, eax
call fcn.140058138
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x98]
mov r9d, ebp
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
call qword [0x14010d8e8]
cmp eax, r12d
mov r15, r13
cmovl eax, r12d
movsxd rdi, eax
lea ebp, [rdi + rdi]
mov word [r13 + rdi*2], r12w
mov eax, dword [rsp + 0x74]
cmp eax, 0x4b1
jne 0x14009b08a
mov edx, ebp
mov rcx, r13
call fcn.140055ac0
mov eax, dword [rsp + 0x74]
cmp eax, r12d
jle 0x14009b1b4
cmp byte [rsp + 0x1a8], r12b
je 0x14009b104
mov rcx, qword [rsp + 0x190]
lea rax, [rsp + 0xd0]
mov r9d, ebp
mov r8, r13
mov rdx, rsi
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], rax
call fcn.140066ba4
lea rcx, [rsp + 0x68]
call fcn.140050424
lea rcx, [rsp + 0x48]
call fcn.140050424
lea rcx, [rsp + 0x50]
call fcn.140050424
cmp rbx, r12
je 0x14009a427
cmp rbx, 0xffffffffffffffff
je 0x14009a427
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009a427
cmp byte [rsp + 0x198], r12b
jne 0x14009b160
cmp ebp, r12d
jle 0x14009b2c3
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x14009b13f
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x190]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r13
lea r9, [rsp + 0x190]
mov r8d, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14009b2c3
cmp dword [rsp + 0x90], r12d
jne 0x14009b1be
lea rcx, [rsp + 0x198]
call fcn.140058038
lea rcx, [rsp + 0x198]
mov r8d, edi
mov rdx, r13
call fcn.14005d0d8
mov r8, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057714
lea rcx, [rsp + 0x198]
call fcn.140050424
jmp 0x14009b2c3
cmp dword [rsp + 0x90], r12d
je 0x14009b1c6
mov r8, r15
jmp 0x14009b2b3
movsxd rbp, ebp
lea rcx, [rsp + 0x68]
shr rbp, 1
lea eax, [rbp + rbp*2]
lea edi, [rax + rax + 0xa]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.140057e3c
mov ecx, dword [rsp + 0x5c]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov rdi, qword [rsp + 0x68]
mov r9d, ebp
mov r8, r13
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r12d
mov ebp, eax
cmovl ebp, r12d
movsxd rax, ebp
mov byte [rax + rdi], r12b
cmp byte [rsp + 0x198], r12b
jne 0x14009b261
cmp ebp, r12d
jle 0x14009b2c3
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x14009b259
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x190]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rdi
jmp 0x14009b142
cmp byte [rsp + 0x1a8], r12b
je 0x14009b29e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x190]
mov r8, rdi
movsxd r9, eax
lea rax, [rsp + 0xd0]
mov rdx, rsi
mov byte [rsp + 0x28], r12b
mov qword [rsp + 0x20], rax
call fcn.140066ba4
jmp 0x14009b2c3
lea rcx, [rsp + 0x48]
mov r8d, ebp
mov rdx, rdi
call fcn.14005d03c
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057714
cmp rbx, r12
je 0x14009b2d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x68]
call fcn.140050424
lea rcx, [rsp + 0x48]
call fcn.140050424
lea rcx, [rsp + 0x50]
call fcn.140050424
cmp rbx, r12
je 0x14009b303
cmp rbx, 0xffffffffffffffff
je 0x14009b303
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xd0]
call fcn.140050424
lea rcx, [rsp + 0x100]
call fcn.140050424
lea rcx, [rsp + 0x88]
call fcn.140050424
lea rcx, [rsp + 0x78]
call fcn.140050424
lea rcx, [rsp + 0x120]
call fcn.140050424
xor eax, eax
jmp 0x14009b386
lea rcx, [rsp + 0xd0]
call fcn.140050424
lea rcx, [rsp + 0x100]
call fcn.140050424
lea rcx, [rsp + 0x88]
call fcn.140050424
lea rcx, [rsp + 0x78]
call fcn.140050424
lea rcx, [rsp + 0x120]
call fcn.140050424
mov rax, r14
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret