Function at 0x140099c88
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.14005818c
lea rcx, [rsp + 0x198]
xor r12d, r12d
mov qword [rsp + 0x128], r13
mov qword [rsp + 0x130], r12
call fcn.14005044c
lea rcx, [rsp + 0x78]
call fcn.14005818c
lea rcx, [rsp + 0x88]
call fcn.14005818c
lea rcx, [rsp + 0x100]
call fcn.14005818c
lea rcx, [rsp + 0xd0]
call fcn.14005818c
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.14006f0ac
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.14005bab0
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 0x140099da2
cmp dx, ax
ja 0x140099d7c
cmp ax, 0xd
jbe 0x140099d82
cmp r8w, ax
jne 0x140099d85
mov rbx, rcx
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x140099d71
cmp rbx, r12
je 0x140099da2
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 0x140099eb0
cmp bp, word [r9]
jne 0x140099eb0
lea r13d, [rbp + 3]
cmp r13w, word [r9 + 2]
je 0x140099ea3
lea rdx, [rsp + 0x198]
lea rcx, str.nobom
mov r8d, 6
call fcn.14005a964
cmp al, r12b
je 0x140099dfe
mov byte [rsp + 0x40], r14b
jmp 0x140099e91
lea rdx, [rsp + 0x198]
lea rcx, str.transonly
mov r8d, 0xa
call fcn.14005a964
cmp al, r12b
je 0x140099e24
mov byte [rsp + 0x60], r14b
jmp 0x140099e91
lea rdx, [rsp + 0x198]
lea rcx, [0x1400fbc50]
mov r8d, r15d
call fcn.14005a964
cmp al, r12b
je 0x140099e45
mov sil, r14b
jmp 0x140099e91
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx]
cmp ax, r12w
je 0x140099e84
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x140099e6a
cmp ax, 0xd
jbe 0x140099e7c
cmp r8w, ax
je 0x140099e7c
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x140099e5f
mov qword [rsp + 0x198], rcx
lea rcx, [rsp + 0x198]
call fcn.14005044c
mov r9, qword [rsp + 0x198]
cmp bp, word [r9]
je 0x140099dca
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 0x140099f03
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.140062680
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.14005041c
mov r9, qword [rsp + 0x78]
cmp sil, r12b
je 0x14009a851
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, r13
call fcn.140003700
mov rax, qword [rsp + 0x48]
mov r9d, 0x2c
lea r8d, [r9 - 0x2a]
cmp r9w, word [rax]
jne 0x140099f39
add rax, r8
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.14005044c
mov rcx, qword [rsp + 0x48]
mov si, word [rcx]
cmp si, r12w
je 0x14009a804
add rcx, r8
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x48]
call fcn.14005044c
mov rax, qword [rsp + 0x48]
cmp r9w, word [rax]
jne 0x140099f7a
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.140006b8c
cmp eax, r12d
jle 0x14009a804
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x48]
call fcn.140006b68
cmp eax, r12d
jle 0x14009a804
mov r15d, dword [rsp + 0x190]
cmp r15d, r12d
jle 0x14009a804
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x48]
call fcn.140006b8c
mov rbx, qword [rsp + 0x1a8]
cmp rbx, r12
jl 0x14009a804
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140006b8c
lea rdi, [0x14010ee80]
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.140016268
cmp rax, r12
je 0x14009a7fb
mov rbp, qword [rax + 0x18]
movabs rcx, 0x3fffffffffffffff
and rbp, rcx
cmp rbx, rbp
jge 0x14009a7fb
cmp rbp, r12
jle 0x14009a7fb
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 0x14009a7fb
mov r14, qword [rsp + 0x198]
mov edx, 0x2b
lea rdi, [rax + rbx]
lea eax, [rdx + 2]
lea r9d, [rdx + 0x13]
cmp ax, si
jne 0x14009a0e0
mov esi, edx
jmp 0x14009a0ee
mov eax, 0x3c
cmp ax, si
jne 0x14009a0f1
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 0x14009a11d
lea ecx, [r8 - 1]
cmp cx, ax
je 0x14009a11d
cmp r8w, ax
jne 0x14009a121
mov si, r8w
mov eax, 0x5e
lea ecx, [rax - 0x3b]
mov dword [rsp + 0xb8], ecx
cmp dx, si
je 0x14009a157
cmp ax, si
je 0x14009a157
cmp cx, si
je 0x14009a157
cmp r9w, si
je 0x14009a157
cmp r8w, si
je 0x14009a15d
lea rcx, [0x14010ee80]
jmp 0x14009a7fe
cmp r8w, si
jne 0x14009a164
cmp rbx, r14
cmovg rbx, r14
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x48]
call fcn.140006b8c
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.140006b8c
mov r13, qword [rsp + 0xb0]
cmp r13, r12
jg 0x14009a1e4
cmp r13, 0xfffffffffffe0000
je 0x14009a1d8
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.140006b8c
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 0x14009a439
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 0x14009a44b
movsxd rdx, dword [rsp + 0x90]
mov rbp, rcx
add rdx, rcx
cmp rcx, rdx
jae 0x14009a388
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 0x14009a367
mov rcx, qword [rsp + 0xd8]
movsxd rax, dword [rsp + 0x70]
cmp eax, r12d
jle 0x14009a3f1
lea rcx, [rsp + 0x138]
mov r8, rax
mov rdx, rdi
mov rbx, rax
call fcn.14001aac4
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14001aac4
mov r8, rbx
lea rdx, [rsp + 0x138]
mov rcx, rbp
call fcn.14001aac4
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 0x14009a346
lea rcx, [0x14010ee80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14009a80b
cmp word [rsp + 0x98], si
jne 0x14009a562
cmp qword [rsp + 0x140], 1
jg 0x14009a4d4
lea r9, [rbx - 1]
cmp r9, r12
jl 0x14009a7ee
mov rax, qword [rsp + 0x110]
lea r10d, [rbp - 1]
mov r13d, 1
cmp r10d, r12d
lea rdx, [rax + rdi]
mov r8d, r10d
jl 0x14009a4aa
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 0x14009a48f
mov rax, qword [rsp + 0x110]
add rdi, r11
sub r9, r13
jns 0x14009a483
mov r13, qword [rsp + 0x68]
mov r9, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xf0]
jmp 0x14009a3f9
lea r10, [rbx - 1]
cmp r10, r12
jl 0x14009a409
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 0x14009a549
lea ebx, [r13 - 1]
mov r13d, 1
cmp ebx, r12d
mov r8d, ebx
jl 0x14009a529
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 0x14009a516
sub rdx, r15
sub r9d, r13d
jns 0x14009a50e
mov r11, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x110]
mov r13d, dword [rsp + 0x80]
add rdi, r11
sub r10, 1
jns 0x14009a4f8
mov r13, qword [rsp + 0x68]
mov r15d, 8
jmp 0x14009a3d1
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 0x14009a617
and bl, 0x3f
mov r9d, 0x40
sub r9b, bl
cmp rdi, r8
jae 0x14009a77b
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a607
sub ecx, r13d
je 0x14009a5fc
cmp ecx, r13d
jne 0x14009a60a
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 0x14009a60a
cmp r11w, si
jne 0x14009a60a
xor qword [rdi], r14
jmp 0x14009a60a
add qword [rdi], r14
add rdi, r15
cmp rdi, r8
jb 0x14009a5d0
jmp 0x14009a75d
cmp r10d, 4
jl 0x14009a688
and bl, 0x1f
mov r9d, 0x20
sub r9b, bl
cmp rdi, r8
jae 0x14009a77b
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a678
sub ecx, r13d
je 0x14009a66d
cmp ecx, r13d
jne 0x14009a67b
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 0x14009a67b
cmp r11w, si
jne 0x14009a67b
xor dword [rdi], r14d
jmp 0x14009a67b
add dword [rdi], r14d
add rdi, r15
cmp rdi, r8
jb 0x14009a648
jmp 0x14009a75d
cmp r10d, 2
jl 0x14009a6fe
and bl, 0xf
mov r9d, 0x10
sub r9b, bl
cmp rdi, r8
jae 0x14009a77b
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a6f0
sub ecx, r13d
je 0x14009a6e4
cmp ecx, r13d
jne 0x14009a6f4
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 0x14009a6f4
cmp r11w, si
jne 0x14009a6f4
xor word [rdi], r14w
jmp 0x14009a6f4
add word [rdi], r14w
add rdi, r15
cmp rdi, r8
jb 0x14009a6b9
jmp 0x14009a75d
and bl, 7
mov r9d, r15d
sub r9b, bl
cmp rdi, r8
jae 0x14009a77b
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009a752
sub ecx, r13d
je 0x14009a747
cmp ecx, r13d
jne 0x14009a755
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 0x14009a755
cmp r11w, si
jne 0x14009a755
xor byte [rdi], r14b
jmp 0x14009a755
add byte [rdi], r14b
add rdi, r15
cmp rdi, r8
jb 0x14009a722
mov r13d, dword [rsp + 0x190]
mov rax, qword [rsp + 0xf8]
mov r11d, dword [rsp + 0x198]
mov r15d, 8
cmp ebp, r12d
jle 0x14009a7cd
mov ecx, 0x3e
cmp cx, si
je 0x14009a7cd
lea rcx, [rsp + 0xe0]
movsxd r8, ebp
mov rdx, rdi
call fcn.14001aac4
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 0x14009a598
mov r13, qword [rsp + 0x68]
cmp r11d, r12d
je 0x14009a3c9
movsxd r8, r11d
lea rdx, [rsp + 0xe0]
mov rcx, rax
jmp 0x14009a3c4
mov r9, qword [rsp + 0xe8]
jmp 0x14009a409
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, 0xffffffff80070057
lea rcx, [rsp + 0xd0]
call fcn.14005041c
lea rcx, [rsp + 0x100]
call fcn.14005041c
lea rcx, [rsp + 0x88]
call fcn.14005041c
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea rcx, [rsp + 0x120]
call fcn.14005041c
mov rax, r12
jmp 0x14009b76a
mov rax, qword [rsp + 0x48]
mov esi, 0x2c
lea rcx, [rax + 2]
mov qword [rsp + 0x118], rcx
cmp si, word [rax]
jne 0x14009a8f1
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
call fcn.14006f0ac
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rax
call fcn.14005bbdc
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x14009a8f1
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.14006f0ac
lea rdx, [rsp + 0x100]
mov rcx, rax
xor r8d, r8d
call fcn.14005bab0
mov r9, qword [rsp + 0x78]
mov rax, qword [rsp + 0x48]
jmp 0x14009a8f6
mov ebx, 2
cmp si, word [rax]
jne 0x14009a933
add rax, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
mov qword [rsp + 0x48], rax
call fcn.14006f0ac
lea rdx, [rsp + 0xd0]
xor r8d, r8d
mov rcx, rax
call fcn.14005bab0
mov r9, qword [rsp + 0x78]
cmp word [r9], r12w
je 0x14009b729
mov rax, qword [rsp + 0x88]
cmp word [rax], r12w
je 0x14009b729
mov r10, qword [rsp + 0x100]
cmp word [r10], r12w
je 0x14009b729
mov rsi, qword [rsp + 0xd0]
cmp word [rsi], r12w
je 0x14009b729
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 0x14009a9e5
cmp ax, word [r9 + 2]
jne 0x14009a9d5
mov r15b, byte [r9]
add r9, 4
mov byte [rsp + 0x59], bl
mov dil, r15b
cmp ax, word [r9]
jne 0x14009a9e5
add r9, rbx
mov byte [rsp + 0x59], 3
jmp 0x14009a9e5
cmp ax, word [r9]
jne 0x14009a9e5
mov r15b, byte [r9]
add r9, 2
mov dil, r15b
mov eax, 0x2d
cmp ax, word [r9]
jne 0x14009a9f6
mov dil, byte [r9]
add r9, rbx
cmp dil, r12b
je 0x14009a804
lea rcx, [0x1400fbc4c]
mov rdx, r9
call fcn.14005199c
mov edi, 0x4b1
cmp al, r12b
je 0x14009aa27
mov edi, 1
mov byte [rsp + 0x58], dil
jmp 0x14009ab7c
lea rcx, str.ANSI
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009aa48
mov dword [rsp + 0x98], r12d
jmp 0x14009ab5c
lea rcx, [0x1400fbc48]
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009aa6c
mov dword [rsp + 0x98], 0x3a8
jmp 0x14009ab5c
lea rcx, str.BIG5
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009aa90
mov dword [rsp + 0x98], 0x3b6
jmp 0x14009ab5c
lea rcx, str.UTF8
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009aab4
mov dword [rsp + 0x98], 0xfde9
jmp 0x14009ab5c
lea rcx, str.UTF7
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009aad8
mov dword [rsp + 0x98], 0xfde8
jmp 0x14009ab5c
lea rcx, str.UNICODE
mov rdx, r9
call fcn.14005199c
cmp al, r12b
jne 0x14009ab00
lea rcx, [0x1400f1704]
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009ab0d
mov edi, 1
mov r14d, 0x4b0
jmp 0x14009ab7c
lea rcx, str.UNICODEB
mov rdx, r9
call fcn.14005199c
cmp al, r12b
jne 0x14009ab35
lea rcx, str.UNIB
mov rdx, r9
call fcn.14005199c
cmp al, r12b
je 0x14009ab3a
mov r14d, edi
jmp 0x14009ab5c
movzx eax, word [r9]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x14009ab63
mov rcx, r9
call fcn.1400593f4
mov qword [rsp + 0x98], rax
mov edi, 1
jmp 0x14009ab7c
cmp word [r9], r12w
jne 0x14009a804
mov edi, 1
mov r14d, edi
mov dword [rsp + 0x80], edi
mov eax, 0x2a
cmp ax, word [r10]
jne 0x14009abb5
cmp ax, word [r10 + 2]
jne 0x14009ab9e
mov al, byte [r10]
add r10, 4
mov byte [rsp + 0x1a8], al
jmp 0x14009abab
cmp ax, word [r10]
jne 0x14009abb5
mov al, byte [r10]
add r10, 2
mov bpl, al
mov byte [rsp + 0x198], al
mov eax, 0x2d
cmp ax, word [r10]
jne 0x14009abc6
mov bpl, byte [r10]
add r10, rbx
cmp bpl, r12b
je 0x14009a804
lea rcx, str.ANSI
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009abed
mov dword [rsp + 0x5c], r12d
jmp 0x14009ad2b
lea rcx, [0x1400fbc48]
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009ac0e
mov dword [rsp + 0x5c], 0x3a8
jmp 0x14009ad2b
lea rcx, str.BIG5
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009ac2f
mov dword [rsp + 0x5c], 0x3b6
jmp 0x14009ad2b
lea rcx, str.UTF8
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009ac5f
mov dword [rsp + 0x5c], 0xfde9
lea r11, [0x1400f7380]
mov dword [rsp + 0x70], 3
jmp 0x14009ad2b
lea rcx, str.UTF7
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009ac80
mov dword [rsp + 0x5c], 0xfde8
jmp 0x14009ad2b
lea rcx, str.UNICODE
mov rdx, r10
call fcn.14005199c
cmp al, r12b
jne 0x14009aca8
lea rcx, [0x1400f1704]
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009acb9
mov dword [rsp + 0x74], 0x4b0
lea r11, [0x1400f7378]
jmp 0x14009acf0
lea rcx, str.UNICODEB
mov rdx, r10
call fcn.14005199c
cmp al, r12b
jne 0x14009ace1
lea rcx, str.UNIB
mov rdx, r10
call fcn.14005199c
cmp al, r12b
je 0x14009acf6
mov dword [rsp + 0x74], 0x4b1
lea r11, [0x1400f737c]
mov dword [rsp + 0x70], ebx
jmp 0x14009ad2b
movzx eax, word [r10]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x14009ad16
mov rcx, r10
call fcn.1400593f4
mov dword [rsp + 0x5c], eax
jmp 0x14009ad2b
cmp word [r10], r12w
jne 0x14009a804
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.140057eb0
mov ebp, r12d
cmp r15b, r12b
jne 0x14009b009
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.14006f0ac
lea rdx, [rsp + 0x88]
mov rcx, rax
xor r8d, r8d
call fcn.14005bab0
mov rcx, qword [rsp + 0x88]
call fcn.1400190a4
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.140003568
mov rdi, qword [rsp + 0x68]
cmp rdi, r12
jne 0x14009adfc
lea rcx, [rsp + 0x50]
call fcn.14005041c
mov r12d, 1
jmp 0x14009a80b
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14005184c
mov r13d, 1
xor edx, edx
mov r8d, r13d
mov rcx, rdi
call fcn.14005184c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r15, rax
call fcn.14005184c
lea r11d, [r15 + 0xa]
lea rcx, [rsp + 0x50]
movsxd rdx, r11d
call fcn.140057f90
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 0x14009aeb1
cmp rdi, 0xffffffffffffffff
je 0x14009ae9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.14005041c
mov r12, r13
jmp 0x14009a80b
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 0x14009aee5
cmp r14d, 0x4b0
jne 0x14009af19
mov r9, qword [rsp + 0x68]
mov r11d, 2
lea rdx, [0x1400f7378]
mov rcx, r9
mov r8, r11
call fcn.14005047c
cmp eax, r12d
jne 0x14009af12
mov r14d, 0x4b0
mov r13d, r11d
jmp 0x14009af89
cmp r10b, r12b
jne 0x14009af2d
jmp 0x14009af24
mov r9, qword [rsp + 0x68]
mov r11d, 2
cmp r14d, 0x4b1
jne 0x14009af51
lea rdx, [0x1400f737c]
mov r8, r11
mov rcx, r9
call fcn.14005047c
cmp eax, r12d
jne 0x14009af4c
mov r14d, 0x4b1
jmp 0x14009af0d
cmp r10b, r12b
jne 0x14009af5e
cmp dword [rsp + 0x98], 0xfde9
jne 0x14009af9f
lea rdx, [0x1400f7380]
mov r8d, 3
mov rcx, r9
call fcn.14005047c
cmp eax, r12d
jne 0x14009af9f
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.14001aa7c
sub ebp, r13d
cmovs ebp, r12d
cmp rdi, 0xffffffffffffffff
je 0x14009afb5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, bl
mov r9d, 2
cmp ebp, r12d
jl 0x14009ade7
cmp byte [rsp + 0x58], r12b
je 0x14009b192
cmp dil, r12b
je 0x14009b192
mov r13, qword [rsp + 0x50]
lea rdx, [0x1400f7378]
mov r8, r9
mov rcx, r13
mov edi, r12d
call fcn.14005047c
cmp eax, r12d
jne 0x14009b122
mov r14d, 0x4b0
jmp 0x14009b169
mov dil, byte [rsp + 0x59]
cmp dil, r12b
je 0x14009b0cd
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, r13
call fcn.140003700
mov rdx, qword [rsp + 0x88]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.140016268
mov r15d, 8
lea rcx, [rsp + 0x50]
mov r13, rax
cmp rax, r12
je 0x14009b0ab
cmp dil, 3
jne 0x14009b06f
mov rdx, qword [rax + 8]
call fcn.14005d268
mov dil, 2
mov ebp, eax
jmp 0x14009b0b6
movsxd rbp, dword [rax + 0x18]
lea eax, [rbp + 8]
movsxd rdx, eax
call fcn.140057f90
mov rax, qword [rsp + 0x50]
mov r8, r15
lea rcx, [rbp + rax]
xor edx, edx
mov rdi, rbp
call fcn.1400d4180
mov rdx, qword [r13 + 8]
mov rcx, qword [rsp + 0x50]
mov r8, rbp
call fcn.14001aac4
mov dil, 1
jmp 0x14009b0b6
mov rdx, r15
call fcn.140057f90
mov dil, bl
movsxd rcx, ebp
mov r8, r15
xor edx, edx
add rcx, qword [rsp + 0x50]
call fcn.1400d4180
jmp 0x14009afb8
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
cmp dword [rsp + 0x80], r12d
je 0x14009b10d
call fcn.140062798
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.140057f90
jmp 0x14009b114
call fcn.14005d268
mov ebp, eax
mov r9d, 2
mov dil, r9b
jmp 0x14009afbe
lea rdx, [0x1400f737c]
mov r8, r9
mov rcx, r13
call fcn.14005047c
cmp eax, r12d
jne 0x14009b141
mov r14d, 0x4b1
jmp 0x14009b169
mov r9d, 3
lea rdx, [0x1400f7380]
mov rcx, r13
mov r8, r9
call fcn.14005047c
cmp eax, r12d
jne 0x14009b18a
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.14001aa7c
mov r13, qword [rsp + 0x50]
sub ebp, edi
cmovs ebp, r12d
jmp 0x14009b197
mov r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r15, r13
call fcn.14005818c
lea rcx, [rsp + 0x5c]
call fcn.1400196ec
mov rdi, qword [rsp + 0x98]
cmp dword [rax], edi
jne 0x14009b291
lea rcx, [rsp + 0x74]
call fcn.1400196ec
cmp dword [rax], r14d
jne 0x14009b291
cmp byte [rsp + 0x1a8], r12b
je 0x14009b207
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.140066cf8
jmp 0x14009b278
cmp byte [rsp + 0x198], r12b
jne 0x14009b230
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 0x14009b278
cmp dword [rsp + 0x90], r12d
jne 0x14009b253
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8d, ebp
call fcn.14005d190
mov r8, qword [rsp + 0x48]
jmp 0x14009b268
mov r8, qword [rsp + 0x88]
cmp dword [rsp + 0x80], r12d
jne 0x14009b268
mov r8, r13
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057738
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0x50]
call fcn.14005041c
jmp 0x14009a80b
cmp r14d, 0x4b1
jne 0x14009b2af
mov rcx, qword [rsp + 0x50]
mov edx, ebp
mov r14d, 0x4b0
call fcn.140055ae4
and ebp, 0xfffffffe
cmp byte [rsp + 0x198], r12b
jne 0x14009b313
mov rcx, rsi
call fcn.1400190a4
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.140003568
mov rbx, qword [rsp + 0xa8]
cmp rbx, r12
jne 0x14009b313
lea rcx, [rsp + 0x48]
call fcn.14005041c
jmp 0x14009ade7
mov eax, 0x3a8
mov qword [rsp + 0x68], r12
cmp dword [rsp + 0x5c], eax
jne 0x14009b32b
cmp edi, 0x3b6
je 0x14009b341
cmp edi, eax
jne 0x14009b3fc
cmp dword [rsp + 0x5c], 0x3b6
jne 0x14009b3fc
movzx eax, byte [rsp + 0x60]
lea rcx, [rsp + 0xa0]
mov edi, eax
cmp al, r12b
mov eax, 3
cmovne edi, eax
call fcn.140057eb0
cmp dword [rsp + 0x5c], 0x3b6
mov rcx, qword [rsp + 0x50]
mov r8d, r12d
lea rdx, [rsp + 0xa0]
sete r8b
call fcn.14005d314
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 0x14009b3ef
cmp byte [rsp + 0x198], r12b
jne 0x14009b3ef
cmp ebp, r12d
jle 0x14009b3dd
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.14005041c
jmp 0x14009b6a7
lea rcx, [rsp + 0xa0]
call fcn.14005041c
movsxd rdi, ebp
shr rdi, 1
cmp r14d, r12d
jne 0x14009b455
lea edi, [rbp + 0xa]
lea rcx, [rsp + 0x48]
lea eax, [rdi + 0xa]
movsxd rdx, eax
call fcn.14005828c
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 0x14009b46e
mov edx, ebp
mov rcx, r13
call fcn.140055ae4
mov eax, dword [rsp + 0x74]
cmp eax, r12d
jle 0x14009b598
cmp byte [rsp + 0x1a8], r12b
je 0x14009b4e8
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.140066cf8
lea rcx, [rsp + 0x68]
call fcn.14005041c
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0x50]
call fcn.14005041c
cmp rbx, r12
je 0x14009a80b
cmp rbx, 0xffffffffffffffff
je 0x14009a80b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009a80b
cmp byte [rsp + 0x198], r12b
jne 0x14009b544
cmp ebp, r12d
jle 0x14009b6a7
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x14009b523
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 0x14009b6a7
cmp dword [rsp + 0x90], r12d
jne 0x14009b5a2
lea rcx, [rsp + 0x198]
call fcn.14005818c
lea rcx, [rsp + 0x198]
mov r8d, edi
mov rdx, r13
call fcn.14005d22c
mov r8, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057738
lea rcx, [rsp + 0x198]
call fcn.14005041c
jmp 0x14009b6a7
cmp dword [rsp + 0x90], r12d
je 0x14009b5aa
mov r8, r15
jmp 0x14009b697
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.140057f90
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 0x14009b645
cmp ebp, r12d
jle 0x14009b6a7
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x14009b63d
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 0x14009b526
cmp byte [rsp + 0x1a8], r12b
je 0x14009b682
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.140066cf8
jmp 0x14009b6a7
lea rcx, [rsp + 0x48]
mov r8d, ebp
mov rdx, rdi
call fcn.14005d190
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140057738
cmp rbx, r12
je 0x14009b6b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x68]
call fcn.14005041c
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0x50]
call fcn.14005041c
cmp rbx, r12
je 0x14009b6e7
cmp rbx, 0xffffffffffffffff
je 0x14009b6e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xd0]
call fcn.14005041c
lea rcx, [rsp + 0x100]
call fcn.14005041c
lea rcx, [rsp + 0x88]
call fcn.14005041c
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea rcx, [rsp + 0x120]
call fcn.14005041c
xor eax, eax
jmp 0x14009b76a
lea rcx, [rsp + 0xd0]
call fcn.14005041c
lea rcx, [rsp + 0x100]
call fcn.14005041c
lea rcx, [rsp + 0x88]
call fcn.14005041c
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea rcx, [rsp + 0x120]
call fcn.14005041c
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