Function at 0x140097870
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.140057154
lea rcx, [rsp + 0x198]
xor r12d, r12d
mov qword [rsp + 0x128], r13
mov qword [rsp + 0x130], r12
call fcn.14004f534
lea rcx, [rsp + 0x78]
call fcn.140057154
lea rcx, [rsp + 0x88]
call fcn.140057154
lea rcx, [rsp + 0x100]
call fcn.140057154
lea rcx, [rsp + 0xd0]
call fcn.140057154
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.14006de04
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.14005aa6c
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 0x14009798a
cmp dx, ax
ja 0x140097964
cmp ax, 0xd
jbe 0x14009796a
cmp r8w, ax
jne 0x14009796d
mov rbx, rcx
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x140097959
cmp rbx, r12
je 0x14009798a
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 0x140097a98
cmp bp, word [r9]
jne 0x140097a98
lea r13d, [rbp + 3]
cmp r13w, word [r9 + 2]
je 0x140097a8b
lea rdx, [rsp + 0x198]
lea rcx, str.nobom
mov r8d, 6
call fcn.14005992c
cmp al, r12b
je 0x1400979e6
mov byte [rsp + 0x40], r14b
jmp 0x140097a79
lea rdx, [rsp + 0x198]
lea rcx, str.transonly
mov r8d, 0xa
call fcn.14005992c
cmp al, r12b
je 0x140097a0c
mov byte [rsp + 0x60], r14b
jmp 0x140097a79
lea rdx, [rsp + 0x198]
lea rcx, [0x1400f9a88]
mov r8d, r15d
call fcn.14005992c
cmp al, r12b
je 0x140097a2d
mov sil, r14b
jmp 0x140097a79
mov rcx, qword [rsp + 0x198]
movzx eax, word [rcx]
cmp ax, r12w
je 0x140097a6c
mov edx, 9
lea r8d, [rdx + 0x17]
cmp dx, ax
ja 0x140097a52
cmp ax, 0xd
jbe 0x140097a64
cmp r8w, ax
je 0x140097a64
add rcx, rdi
mov ax, word [rcx]
cmp ax, r12w
jne 0x140097a47
mov qword [rsp + 0x198], rcx
lea rcx, [rsp + 0x198]
call fcn.14004f534
mov r9, qword [rsp + 0x198]
cmp bp, word [r9]
je 0x1400979b2
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 0x140097aeb
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.14006160c
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.14004f564
mov r9, qword [rsp + 0x78]
cmp sil, r12b
je 0x140098439
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, r13
call fcn.140003728
mov rax, qword [rsp + 0x48]
mov r9d, 0x2c
lea r8d, [r9 - 0x2a]
cmp r9w, word [rax]
jne 0x140097b21
add rax, r8
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.14004f534
mov rcx, qword [rsp + 0x48]
mov si, word [rcx]
cmp si, r12w
je 0x1400983ec
add rcx, r8
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x48]
call fcn.14004f534
mov rax, qword [rsp + 0x48]
cmp r9w, word [rax]
jne 0x140097b62
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.14008e204
cmp eax, r12d
jle 0x1400983ec
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x48]
call fcn.140006aac
cmp eax, r12d
jle 0x1400983ec
mov r15d, dword [rsp + 0x190]
cmp r15d, r12d
jle 0x1400983ec
lea rdx, [rsp + 0x1a8]
lea rcx, [rsp + 0x48]
call fcn.14008e204
mov rbx, qword [rsp + 0x1a8]
cmp rbx, r12
jl 0x1400983ec
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14008e204
lea rdi, [0x14010ce50]
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.140016070
cmp rax, r12
je 0x1400983e3
mov rbp, qword [rax + 0x18]
movabs rcx, 0x3fffffffffffffff
and rbp, rcx
cmp rbx, rbp
jge 0x1400983e3
cmp rbp, r12
jle 0x1400983e3
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 0x1400983e3
mov r14, qword [rsp + 0x198]
mov edx, 0x2b
lea rdi, [rax + rbx]
lea eax, [rdx + 2]
lea r9d, [rdx + 0x13]
cmp ax, si
jne 0x140097cc8
mov esi, edx
jmp 0x140097cd6
mov eax, 0x3c
cmp ax, si
jne 0x140097cd9
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 0x140097d05
lea ecx, [r8 - 1]
cmp cx, ax
je 0x140097d05
cmp r8w, ax
jne 0x140097d09
mov si, r8w
mov eax, 0x5e
lea ecx, [rax - 0x3b]
mov dword [rsp + 0xb8], ecx
cmp dx, si
je 0x140097d3f
cmp ax, si
je 0x140097d3f
cmp cx, si
je 0x140097d3f
cmp r9w, si
je 0x140097d3f
cmp r8w, si
je 0x140097d45
lea rcx, [0x14010ce50]
jmp 0x1400983e6
cmp r8w, si
jne 0x140097d4c
cmp rbx, r14
cmovg rbx, r14
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x48]
call fcn.14008e204
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.14008e204
mov r13, qword [rsp + 0xb0]
cmp r13, r12
jg 0x140097dcc
cmp r13, 0xfffffffffffe0000
je 0x140097dc0
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.14008e204
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 0x140098021
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 0x140098033
movsxd rdx, dword [rsp + 0x90]
mov rbp, rcx
add rdx, rcx
cmp rcx, rdx
jae 0x140097f70
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 0x140097f4f
mov rcx, qword [rsp + 0xd8]
movsxd rax, dword [rsp + 0x70]
cmp eax, r12d
jle 0x140097fd9
lea rcx, [rsp + 0x138]
mov r8, rax
mov rdx, rdi
mov rbx, rax
call fcn.14001a9b0
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14001a9b0
mov r8, rbx
lea rdx, [rsp + 0x138]
mov rcx, rbp
call fcn.14001a9b0
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 0x140097f2e
lea rcx, [0x14010ce50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400983f3
cmp word [rsp + 0x98], si
jne 0x14009814a
cmp qword [rsp + 0x140], 1
jg 0x1400980bc
lea r9, [rbx - 1]
cmp r9, r12
jl 0x1400983d6
mov rax, qword [rsp + 0x110]
lea r10d, [rbp - 1]
mov r13d, 1
cmp r10d, r12d
lea rdx, [rax + rdi]
mov r8d, r10d
jl 0x140098092
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 0x140098077
mov rax, qword [rsp + 0x110]
add rdi, r11
sub r9, r13
jns 0x14009806b
mov r13, qword [rsp + 0x68]
mov r9, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xf0]
jmp 0x140097fe1
lea r10, [rbx - 1]
cmp r10, r12
jl 0x140097ff1
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 0x140098131
lea ebx, [r13 - 1]
mov r13d, 1
cmp ebx, r12d
mov r8d, ebx
jl 0x140098111
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 0x1400980fe
sub rdx, r15
sub r9d, r13d
jns 0x1400980f6
mov r11, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x110]
mov r13d, dword [rsp + 0x80]
add rdi, r11
sub r10, 1
jns 0x1400980e0
mov r13, qword [rsp + 0x68]
mov r15d, 8
jmp 0x140097fb9
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 0x1400981ff
and bl, 0x3f
mov r9d, 0x40
sub r9b, bl
cmp rdi, r8
jae 0x140098363
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x1400981ef
sub ecx, r13d
je 0x1400981e4
cmp ecx, r13d
jne 0x1400981f2
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 0x1400981f2
cmp r11w, si
jne 0x1400981f2
xor qword [rdi], r14
jmp 0x1400981f2
add qword [rdi], r14
add rdi, r15
cmp rdi, r8
jb 0x1400981b8
jmp 0x140098345
cmp r10d, 4
jl 0x140098270
and bl, 0x1f
mov r9d, 0x20
sub r9b, bl
cmp rdi, r8
jae 0x140098363
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x140098260
sub ecx, r13d
je 0x140098255
cmp ecx, r13d
jne 0x140098263
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 0x140098263
cmp r11w, si
jne 0x140098263
xor dword [rdi], r14d
jmp 0x140098263
add dword [rdi], r14d
add rdi, r15
cmp rdi, r8
jb 0x140098230
jmp 0x140098345
cmp r10d, 2
jl 0x1400982e6
and bl, 0xf
mov r9d, 0x10
sub r9b, bl
cmp rdi, r8
jae 0x140098363
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x1400982d8
sub ecx, r13d
je 0x1400982cc
cmp ecx, r13d
jne 0x1400982dc
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 0x1400982dc
cmp r11w, si
jne 0x1400982dc
xor word [rdi], r14w
jmp 0x1400982dc
add word [rdi], r14w
add rdi, r15
cmp rdi, r8
jb 0x1400982a1
jmp 0x140098345
and bl, 7
mov r9d, r15d
sub r9b, bl
cmp rdi, r8
jae 0x140098363
mov r15, qword [rsp + 0x108]
movzx r10d, r13b
mov r13d, 1
lea r11d, [r13 + 0x5d]
mov ecx, r10d
cmp r10d, r12d
je 0x14009833a
sub ecx, r13d
je 0x14009832f
cmp ecx, r13d
jne 0x14009833d
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 0x14009833d
cmp r11w, si
jne 0x14009833d
xor byte [rdi], r14b
jmp 0x14009833d
add byte [rdi], r14b
add rdi, r15
cmp rdi, r8
jb 0x14009830a
mov r13d, dword [rsp + 0x190]
mov rax, qword [rsp + 0xf8]
mov r11d, dword [rsp + 0x198]
mov r15d, 8
cmp ebp, r12d
jle 0x1400983b5
mov ecx, 0x3e
cmp cx, si
je 0x1400983b5
lea rcx, [rsp + 0xe0]
movsxd r8, ebp
mov rdx, rdi
call fcn.14001a9b0
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 0x140098180
mov r13, qword [rsp + 0x68]
cmp r11d, r12d
je 0x140097fb1
movsxd r8, r11d
lea rdx, [rsp + 0xe0]
mov rcx, rax
jmp 0x140097fac
mov r9, qword [rsp + 0xe8]
jmp 0x140097ff1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, 0xffffffff80070057
lea rcx, [rsp + 0xd0]
call fcn.14004f564
lea rcx, [rsp + 0x100]
call fcn.14004f564
lea rcx, [rsp + 0x88]
call fcn.14004f564
lea rcx, [rsp + 0x78]
call fcn.14004f564
lea rcx, [rsp + 0x120]
call fcn.14004f564
mov rax, r12
jmp 0x140099352
mov rax, qword [rsp + 0x48]
mov esi, 0x2c
lea rcx, [rax + 2]
mov qword [rsp + 0x118], rcx
cmp si, word [rax]
jne 0x1400984d9
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
call fcn.14006de04
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rax
call fcn.14005ab98
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x78]
cmp si, word [rax]
jne 0x1400984d9
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.14006de04
lea rdx, [rsp + 0x100]
mov rcx, rax
xor r8d, r8d
call fcn.14005aa6c
mov r9, qword [rsp + 0x78]
mov rax, qword [rsp + 0x48]
jmp 0x1400984de
mov ebx, 2
cmp si, word [rax]
jne 0x14009851b
add rax, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x120]
mov r8d, esi
mov r9b, r14b
mov qword [rsp + 0x48], rax
call fcn.14006de04
lea rdx, [rsp + 0xd0]
xor r8d, r8d
mov rcx, rax
call fcn.14005aa6c
mov r9, qword [rsp + 0x78]
cmp word [r9], r12w
je 0x140099311
mov rax, qword [rsp + 0x88]
cmp word [rax], r12w
je 0x140099311
mov r10, qword [rsp + 0x100]
cmp word [r10], r12w
je 0x140099311
mov rsi, qword [rsp + 0xd0]
cmp word [rsi], r12w
je 0x140099311
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 0x1400985cd
cmp ax, word [r9 + 2]
jne 0x1400985bd
mov r15b, byte [r9]
add r9, 4
mov byte [rsp + 0x59], bl
mov dil, r15b
cmp ax, word [r9]
jne 0x1400985cd
add r9, rbx
mov byte [rsp + 0x59], 3
jmp 0x1400985cd
cmp ax, word [r9]
jne 0x1400985cd
mov r15b, byte [r9]
add r9, 2
mov dil, r15b
mov eax, 0x2d
cmp ax, word [r9]
jne 0x1400985de
mov dil, byte [r9]
add r9, rbx
cmp dil, r12b
je 0x1400983ec
lea rcx, [0x1400f9a84]
mov rdx, r9
call fcn.140050aa8
mov edi, 0x4b1
cmp al, r12b
je 0x14009860f
mov edi, 1
mov byte [rsp + 0x58], dil
jmp 0x140098764
lea rcx, str.ANSI
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x140098630
mov dword [rsp + 0x98], r12d
jmp 0x140098744
lea rcx, [0x1400f9a80]
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x140098654
mov dword [rsp + 0x98], 0x3a8
jmp 0x140098744
lea rcx, str.BIG5
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x140098678
mov dword [rsp + 0x98], 0x3b6
jmp 0x140098744
lea rcx, str.UTF8
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x14009869c
mov dword [rsp + 0x98], 0xfde9
jmp 0x140098744
lea rcx, str.UTF7
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x1400986c0
mov dword [rsp + 0x98], 0xfde8
jmp 0x140098744
lea rcx, str.UNICODE
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
jne 0x1400986e8
lea rcx, [0x1400ef654]
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x1400986f5
mov edi, 1
mov r14d, 0x4b0
jmp 0x140098764
lea rcx, str.UNICODEB
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
jne 0x14009871d
lea rcx, str.UNIB
mov rdx, r9
call fcn.140050aa8
cmp al, r12b
je 0x140098722
mov r14d, edi
jmp 0x140098744
movzx eax, word [r9]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x14009874b
mov rcx, r9
call fcn.1400583bc
mov qword [rsp + 0x98], rax
mov edi, 1
jmp 0x140098764
cmp word [r9], r12w
jne 0x1400983ec
mov edi, 1
mov r14d, edi
mov dword [rsp + 0x80], edi
mov eax, 0x2a
cmp ax, word [r10]
jne 0x14009879d
cmp ax, word [r10 + 2]
jne 0x140098786
mov al, byte [r10]
add r10, 4
mov byte [rsp + 0x1a8], al
jmp 0x140098793
cmp ax, word [r10]
jne 0x14009879d
mov al, byte [r10]
add r10, 2
mov bpl, al
mov byte [rsp + 0x198], al
mov eax, 0x2d
cmp ax, word [r10]
jne 0x1400987ae
mov bpl, byte [r10]
add r10, rbx
cmp bpl, r12b
je 0x1400983ec
lea rcx, str.ANSI
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x1400987d5
mov dword [rsp + 0x5c], r12d
jmp 0x140098913
lea rcx, [0x1400f9a80]
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x1400987f6
mov dword [rsp + 0x5c], 0x3a8
jmp 0x140098913
lea rcx, str.BIG5
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x140098817
mov dword [rsp + 0x5c], 0x3b6
jmp 0x140098913
lea rcx, str.UTF8
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x140098847
mov dword [rsp + 0x5c], 0xfde9
lea r11, [0x1400f5250]
mov dword [rsp + 0x70], 3
jmp 0x140098913
lea rcx, str.UTF7
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x140098868
mov dword [rsp + 0x5c], 0xfde8
jmp 0x140098913
lea rcx, str.UNICODE
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
jne 0x140098890
lea rcx, [0x1400ef654]
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x1400988a1
mov dword [rsp + 0x74], 0x4b0
lea r11, [0x1400f5248]
jmp 0x1400988d8
lea rcx, str.UNICODEB
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
jne 0x1400988c9
lea rcx, str.UNIB
mov rdx, r10
call fcn.140050aa8
cmp al, r12b
je 0x1400988de
mov dword [rsp + 0x74], 0x4b1
lea r11, [0x1400f524c]
mov dword [rsp + 0x70], ebx
jmp 0x140098913
movzx eax, word [r10]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x1400988fe
mov rcx, r10
call fcn.1400583bc
mov dword [rsp + 0x5c], eax
jmp 0x140098913
cmp word [r10], r12w
jne 0x1400983ec
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.140056f00
mov ebp, r12d
cmp r15b, r12b
jne 0x140098bf1
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.14006de04
lea rdx, [rsp + 0x88]
mov rcx, rax
xor r8d, r8d
call fcn.14005aa6c
mov rcx, qword [rsp + 0x88]
call fcn.140018fa4
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.140003590
mov rdi, qword [rsp + 0x68]
cmp rdi, r12
jne 0x1400989e4
lea rcx, [rsp + 0x50]
call fcn.14004f564
mov r12d, 1
jmp 0x1400983f3
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140050964
mov r13d, 1
xor edx, edx
mov r8d, r13d
mov rcx, rdi
call fcn.140050964
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r15, rax
call fcn.140050964
lea r11d, [r15 + 0xa]
lea rcx, [rsp + 0x50]
movsxd rdx, r11d
call fcn.140056fe0
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 0x140098a99
cmp rdi, 0xffffffffffffffff
je 0x140098a87
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.14004f564
mov r12, r13
jmp 0x1400983f3
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 0x140098acd
cmp r14d, 0x4b0
jne 0x140098b01
mov r9, qword [rsp + 0x68]
mov r11d, 2
lea rdx, [0x1400f5248]
mov rcx, r9
mov r8, r11
call fcn.14004f594
cmp eax, r12d
jne 0x140098afa
mov r14d, 0x4b0
mov r13d, r11d
jmp 0x140098b71
cmp r10b, r12b
jne 0x140098b15
jmp 0x140098b0c
mov r9, qword [rsp + 0x68]
mov r11d, 2
cmp r14d, 0x4b1
jne 0x140098b39
lea rdx, [0x1400f524c]
mov r8, r11
mov rcx, r9
call fcn.14004f594
cmp eax, r12d
jne 0x140098b34
mov r14d, 0x4b1
jmp 0x140098af5
cmp r10b, r12b
jne 0x140098b46
cmp dword [rsp + 0x98], 0xfde9
jne 0x140098b87
lea rdx, [0x1400f5250]
mov r8d, 3
mov rcx, r9
call fcn.14004f594
cmp eax, r12d
jne 0x140098b87
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.14001a968
sub ebp, r13d
cmovs ebp, r12d
cmp rdi, 0xffffffffffffffff
je 0x140098b9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, bl
mov r9d, 2
cmp ebp, r12d
jl 0x1400989cf
cmp byte [rsp + 0x58], r12b
je 0x140098d7a
cmp dil, r12b
je 0x140098d7a
mov r13, qword [rsp + 0x50]
lea rdx, [0x1400f5248]
mov r8, r9
mov rcx, r13
mov edi, r12d
call fcn.14004f594
cmp eax, r12d
jne 0x140098d0a
mov r14d, 0x4b0
jmp 0x140098d51
mov dil, byte [rsp + 0x59]
cmp dil, r12b
je 0x140098cb5
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, r13
call fcn.140003728
mov rdx, qword [rsp + 0x88]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], r12
call fcn.140016070
mov r15d, 8
lea rcx, [rsp + 0x50]
mov r13, rax
cmp rax, r12
je 0x140098c93
cmp dil, 3
jne 0x140098c57
mov rdx, qword [rax + 8]
call fcn.14005c224
mov dil, 2
mov ebp, eax
jmp 0x140098c9e
movsxd rbp, dword [rax + 0x18]
lea eax, [rbp + 8]
movsxd rdx, eax
call fcn.140056fe0
mov rax, qword [rsp + 0x50]
mov r8, r15
lea rcx, [rbp + rax]
xor edx, edx
mov rdi, rbp
call fcn.1400d1fa0
mov rdx, qword [r13 + 8]
mov rcx, qword [rsp + 0x50]
mov r8, rbp
call fcn.14001a9b0
mov dil, 1
jmp 0x140098c9e
mov rdx, r15
call fcn.140056fe0
mov dil, bl
movsxd rcx, ebp
mov r8, r15
xor edx, edx
add rcx, qword [rsp + 0x50]
call fcn.1400d1fa0
jmp 0x140098ba0
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
cmp dword [rsp + 0x80], r12d
je 0x140098cf5
call fcn.140061724
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.140056fe0
jmp 0x140098cfc
call fcn.14005c224
mov ebp, eax
mov r9d, 2
mov dil, r9b
jmp 0x140098ba6
lea rdx, [0x1400f524c]
mov r8, r9
mov rcx, r13
call fcn.14004f594
cmp eax, r12d
jne 0x140098d29
mov r14d, 0x4b1
jmp 0x140098d51
mov r9d, 3
lea rdx, [0x1400f5250]
mov rcx, r13
mov r8, r9
call fcn.14004f594
cmp eax, r12d
jne 0x140098d72
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.14001a968
mov r13, qword [rsp + 0x50]
sub ebp, edi
cmovs ebp, r12d
jmp 0x140098d7f
mov r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r15, r13
call fcn.140057154
lea rcx, [rsp + 0x5c]
call fcn.14001ab40
mov rdi, qword [rsp + 0x98]
cmp dword [rax], edi
jne 0x140098e79
lea rcx, [rsp + 0x74]
call fcn.14001ab40
cmp dword [rax], r14d
jne 0x140098e79
cmp byte [rsp + 0x1a8], r12b
je 0x140098def
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.140065c84
jmp 0x140098e60
cmp byte [rsp + 0x198], r12b
jne 0x140098e18
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 0x140098e60
cmp dword [rsp + 0x90], r12d
jne 0x140098e3b
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r8d, ebp
call fcn.14005c14c
mov r8, qword [rsp + 0x48]
jmp 0x140098e50
mov r8, qword [rsp + 0x88]
cmp dword [rsp + 0x80], r12d
jne 0x140098e50
mov r8, r13
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140056790
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0x50]
call fcn.14004f564
jmp 0x1400983f3
cmp r14d, 0x4b1
jne 0x140098e97
mov rcx, qword [rsp + 0x50]
mov edx, ebp
mov r14d, 0x4b0
call fcn.140054a5c
and ebp, 0xfffffffe
cmp byte [rsp + 0x198], r12b
jne 0x140098efb
mov rcx, rsi
call fcn.140018fa4
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.140003590
mov rbx, qword [rsp + 0xa8]
cmp rbx, r12
jne 0x140098efb
lea rcx, [rsp + 0x48]
call fcn.14004f564
jmp 0x1400989cf
mov eax, 0x3a8
mov qword [rsp + 0x68], r12
cmp dword [rsp + 0x5c], eax
jne 0x140098f13
cmp edi, 0x3b6
je 0x140098f29
cmp edi, eax
jne 0x140098fe4
cmp dword [rsp + 0x5c], 0x3b6
jne 0x140098fe4
movzx eax, byte [rsp + 0x60]
lea rcx, [rsp + 0xa0]
mov edi, eax
cmp al, r12b
mov eax, 3
cmovne edi, eax
call fcn.140056f00
cmp dword [rsp + 0x5c], 0x3b6
mov rcx, qword [rsp + 0x50]
mov r8d, r12d
lea rdx, [rsp + 0xa0]
sete r8b
call fcn.14005c2d0
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 0x140098fd7
cmp byte [rsp + 0x198], r12b
jne 0x140098fd7
cmp ebp, r12d
jle 0x140098fc5
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.14004f564
jmp 0x14009928f
lea rcx, [rsp + 0xa0]
call fcn.14004f564
movsxd rdi, ebp
shr rdi, 1
cmp r14d, r12d
jne 0x14009903d
lea edi, [rbp + 0xa]
lea rcx, [rsp + 0x48]
lea eax, [rdi + 0xa]
movsxd rdx, eax
call fcn.140057254
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 [0x14010b900]
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 0x140099056
mov edx, ebp
mov rcx, r13
call fcn.140054a5c
mov eax, dword [rsp + 0x74]
cmp eax, r12d
jle 0x140099180
cmp byte [rsp + 0x1a8], r12b
je 0x1400990d0
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.140065c84
lea rcx, [rsp + 0x68]
call fcn.14004f564
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0x50]
call fcn.14004f564
cmp rbx, r12
je 0x1400983f3
cmp rbx, 0xffffffffffffffff
je 0x1400983f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400983f3
cmp byte [rsp + 0x198], r12b
jne 0x14009912c
cmp ebp, r12d
jle 0x14009928f
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x14009910b
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 0x14009928f
cmp dword [rsp + 0x90], r12d
jne 0x14009918a
lea rcx, [rsp + 0x198]
call fcn.140057154
lea rcx, [rsp + 0x198]
mov r8d, edi
mov rdx, r13
call fcn.14005c1e8
mov r8, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140056790
lea rcx, [rsp + 0x198]
call fcn.14004f564
jmp 0x14009928f
cmp dword [rsp + 0x90], r12d
je 0x140099192
mov r8, r15
jmp 0x14009927f
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.140056fe0
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 0x14009922d
cmp ebp, r12d
jle 0x14009928f
mov rdx, qword [rsp + 0xb0]
cmp rdx, r12
je 0x140099225
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 0x14009910e
cmp byte [rsp + 0x1a8], r12b
je 0x14009926a
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.140065c84
jmp 0x14009928f
lea rcx, [rsp + 0x48]
mov r8d, ebp
mov rdx, rdi
call fcn.14005c14c
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x190]
mov rdx, rsi
call fcn.140056790
cmp rbx, r12
je 0x14009929d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x68]
call fcn.14004f564
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0x50]
call fcn.14004f564
cmp rbx, r12
je 0x1400992cf
cmp rbx, 0xffffffffffffffff
je 0x1400992cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xd0]
call fcn.14004f564
lea rcx, [rsp + 0x100]
call fcn.14004f564
lea rcx, [rsp + 0x88]
call fcn.14004f564
lea rcx, [rsp + 0x78]
call fcn.14004f564
lea rcx, [rsp + 0x120]
call fcn.14004f564
xor eax, eax
jmp 0x140099352
lea rcx, [rsp + 0xd0]
call fcn.14004f564
lea rcx, [rsp + 0x100]
call fcn.14004f564
lea rcx, [rsp + 0x88]
call fcn.14004f564
lea rcx, [rsp + 0x78]
call fcn.14004f564
lea rcx, [rsp + 0x120]
call fcn.14004f564
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