Function at 0x14009da54
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
xor esi, esi
mov r11, rdx
mov r15, rcx
lea edi, [rsi + 9]
mov bl, sil
mov r13d, 0xffff0000
mov byte [rsp + 0x40], sil
mov dword [rsp + 0x60], esi
lea ebp, [rsi + 5]
mov byte [rsp + 0x148], bl
lea edx, [rsi + 0x20]
lea ecx, [rsi + 0xd]
lea r14d, [rsi + 1]
mov r12d, 0x4b1
cmp di, word [r11]
ja 0x14009dab8
cmp word [r11], cx
jbe 0x14009dabe
cmp dx, word [r11]
jne 0x14009dacb
mov r13d, esi
mov dword [rsp + 0x60], r14d
jmp 0x14009dc34
lea rcx, str._UNI
mov r8d, 4
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009daf0
mov r13d, 0x4b0
jmp 0x14009dc0f
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.14005c72c
cmp al, sil
jne 0x14009dae5
lea rcx, str._UNIB
mov r8d, ebp
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009db29
mov r13d, r12d
jmp 0x14009dc0f
lea rcx, str._UNICODEB
mov r8d, edi
mov rdx, r11
call fcn.14005c72c
cmp al, sil
jne 0x14009db21
lea rcx, str._ANSI
mov r8d, ebp
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009db5f
mov r13d, esi
jmp 0x14009dc0f
lea rcx, str._GBK
mov r8d, 4
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009db84
mov r13d, 0x3a8
jmp 0x14009dc0f
lea rcx, str._BIG5
mov r8d, ebp
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009dba3
mov r13d, 0x3b6
jmp 0x14009dc0f
lea rcx, str._UTF8
mov r8d, ebp
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009dbc2
mov r13d, 0xfde9
jmp 0x14009dc0f
lea rcx, str._UTF7
mov r8d, ebp
mov rdx, r11
call fcn.14005c72c
cmp al, sil
je 0x14009dbe1
mov r13d, 0xfde8
jmp 0x14009dc0f
mov eax, 0x2d
cmp ax, word [r11]
jne 0x14009dc0f
lea rcx, [r11 + 2]
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, di
ja 0x14009dc0f
mov r11, rcx
mov qword [rsp + 0x138], rcx
call fcn.140064a88
mov r13, rax
mov edx, 0x20
lea ecx, [rdx - 0x13]
jmp 0x14009dc34
cmp di, ax
ja 0x14009dc23
cmp ax, cx
jbe 0x14009dc3d
cmp dx, ax
je 0x14009dc3d
add r11, 2
mov qword [rsp + 0x138], r11
movzx eax, word [r11]
cmp ax, si
jne 0x14009dc19
lea rcx, [rsp + 0x138]
call fcn.14005b154
mov r12b, sil
mov edi, 0x2a
jmp 0x14009dcbe
lea rdx, [rsp + 0x138]
lea rcx, [0x140128c1c]
mov r8d, 4
call fcn.1400660ac
cmp al, sil
je 0x14009dc79
or r12b, 2
jmp 0x14009dcbe
lea rdx, [rsp + 0x138]
lea rcx, [0x140122ef4]
mov r8d, 3
call fcn.1400660ac
cmp al, sil
je 0x14009dc9e
or r12b, 4
jmp 0x14009dcbe
lea rdx, [rsp + 0x138]
lea rcx, [0x140128c14]
mov r8d, ebp
call fcn.1400660ac
cmp al, sil
je 0x14009dccb
or r12b, 0xc
mov rax, qword [rsp + 0x138]
cmp di, word [rax]
je 0x14009dc54
mov al, r12b
lea rdx, [0x14011c638]
lea rcx, [rsp + 0x98]
and al, 0xc
mov byte [rsp + 0x6c], al
call fcn.1400702b0
lea rdx, [0x140128c00]
lea rcx, [rsp + 0x70]
call fcn.1400702b0
mov edi, 0x2c
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x138]
mov r9d, edi
mov rcx, r15
mov rbp, r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x20], si
call fcn.1400545f8
mov r9, qword [rsp + 0x98]
lea rcx, [0x140128bfc]
mov rdx, r9
mov qword [rsp + 0x138], rax
call fcn.14005c7c4
cmp al, sil
je 0x14009dd72
mov bl, 9
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x148], bl
lea rcx, [0x140128bf8]
mov rdx, r9
call fcn.14005c7c4
cmp al, sil
je 0x14009de51
mov qword [rsp + 0x58], r14
or bl, r14b
mov byte [rsp + 0x148], bl
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0xc0], rsi
call fcn.140063620
mov rdx, qword [rsp + 0x138]
lea r8, [rsp + 0xc8]
xor r9d, r9d
mov rcx, r15
mov byte [rsp + 0x20], r14b
call fcn.14007a224
mov r11, qword [rsp + 0xc8]
mov qword [rsp + 0x138], r11
cmp word [r11], di
jne 0x14009dfa6
lea rcx, [rsp + 0x78]
call fcn.140063620
add qword [rsp + 0x138], 2
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x138]
mov r8d, edi
call fcn.1400675b8
mov r11, qword [rsp + 0x78]
lea rcx, [0x140128bf4]
mov rdx, r11
mov qword [rsp + 0x80], r11
call fcn.14005c7c4
cmp al, sil
je 0x14009de96
lea rbx, [0x140128bf0]
mov byte [rsp + 0x40], 2
mov qword [rsp + 0xc0], rbx
mov bl, byte [rsp + 0x148]
jmp 0x14009df6d
cmp word [r9], si
je 0x14009dd8f
lea rcx, [0x14011dd2c]
mov rdx, r9
call fcn.14005c7c4
cmp al, sil
jne 0x14009dd8f
lea rcx, [0x14011d4b4]
mov rdx, r9
call fcn.14005c7c4
cmp al, sil
je 0x14009dd99
mov bl, 2
or r12b, 0x10
jmp 0x14009dd92
lea rcx, [0x140128bec]
mov rdx, r11
call fcn.14005c7c4
cmp al, sil
je 0x14009deb4
mov byte [rsp + 0x40], 3
jmp 0x14009df6d
lea rcx, [0x140128be8]
mov rdx, r11
call fcn.14005c7c4
cmp al, sil
je 0x14009dee2
mov byte [rsp + 0x40], 3
mov rbp, rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x90], rsi
jmp 0x14009df6d
lea rcx, [0x14012161c]
mov rdx, r11
call fcn.14005c7c4
cmp al, sil
je 0x14009df0c
lea rax, [0x140128be4]
mov byte [rsp + 0x40], r14b
mov qword [rsp + 0xc0], rax
jmp 0x14009df6d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x80]
call fcn.1400745c8
mov rax, qword [rsp + 0x80]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x14009df60
add rax, 2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
call fcn.1400745c8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rbp
lea rcx, [rsp + 0x78]
call fcn.14005b104
mov r11, qword [rsp + 0x138]
cmp word [r11], di
jne 0x14009dfa6
add r11, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x138]
mov r8d, edi
mov qword [rsp + 0x138], r11
call fcn.1400675b8
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, r15
call fcn.140003a20
lea rcx, [rsp + 0x50]
mov edx, 8
call fcn.1400633a8
cmp r13d, esi
mov r15, qword [rsp + 0x50]
mov word [r15], si
mov edi, r14d
jl 0x14009f00c
lea rcx, [rsp + 0xa8]
call fcn.140063344
mov rax, qword [rsp + 0x98]
mov ecx, 0x75
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
mov r14d, 0xff
cmp cx, word [rax]
jne 0x14009e270
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x14009e270
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x14009e270
add rax, 6
lea r9d, [rcx - 0x42]
mov r15b, 5
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x138]
mov word [rax], si
mov r10, qword [rsp + 0x148]
cmp r9w, word [r10]
jne 0x14009e067
add r10, 2
mov qword [rsp + 0x148], r10
lea rcx, [rsp + 0x148]
call fcn.1400f5c6c
mov rcx, qword [rsp + 0x148]
cmp rcx, r10
je 0x14009e094
cmp word [rcx - 2], r9w
jne 0x14009e094
mov word [rcx - 2], si
mov rcx, qword [rsp + 0x148]
cmp dx, word [rcx]
jne 0x14009e0b0
mov word [rcx], si
mov rcx, qword [rsp + 0x148]
add rcx, 2
mov qword [rsp + 0x148], rcx
mov r8, rcx
cmp r9w, word [rcx]
jne 0x14009e0df
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x148], rcx
cmp r9w, word [rcx]
jne 0x14009e0da
mov word [rcx], si
mov rcx, qword [rsp + 0x148]
cmp word [rcx], si
jne 0x14009e0bd
lea rdx, [rsp + 0xa8]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rsi
call fcn.1400554dc
mov rbx, qword [rsp + 0xb0]
cmp ebx, esi
mov r11, qword [rsp + 0xa8]
jle 0x14009e124
mov rax, qword [rsp + 0xb8]
lea r8, [r11 + rax]
mov qword [rsp + 0x138], r8
jmp 0x14009e12c
mov r8, qword [rsp + 0x138]
movsx edx, byte [r8]
mov rcx, rsi
cmp edx, r14d
jne 0x14009e151
movsx eax, byte [r8 + 1]
cmp eax, 0xfe
jne 0x14009e151
mov ecx, 2
mov r13d, 0x4b0
jmp 0x14009e19b
cmp edx, 0xfe
jne 0x14009e170
movsx eax, byte [r8 + 1]
cmp eax, r14d
jne 0x14009e170
mov ecx, 2
mov r13d, 0x4b1
jmp 0x14009e19b
cmp edx, 0xef
jne 0x14009e19b
movsx eax, byte [r8 + 1]
cmp eax, 0xbb
jne 0x14009e19b
movsx eax, byte [r8 + 2]
cmp eax, 0xbf
jne 0x14009e19b
mov ecx, 3
mov r13d, 0xfde9
sub ebx, ecx
lea rdi, [rcx + r8]
cmp r13d, 0x4b1
jne 0x14009e1e2
movsxd rdx, ebx
and rdx, 0xfffffffffffffffe
add rdx, rdi
cmp rdi, rdx
ja 0x14009e1d4
mov cl, byte [rdi]
mov al, byte [rdi + 1]
mov byte [rdi], al
mov byte [rdi + 1], cl
add rdi, 2
cmp rdi, rdx
jbe 0x14009e1b9
mov r8, qword [rsp + 0x138]
mov r12d, dword [rsp + 0x60]
or r12d, 4
jmp 0x14009e301
cmp r13d, 0x4b0
je 0x14009e1d4
mov r12d, dword [rsp + 0x60]
cmp r12d, esi
je 0x14009e20b
movsxd rdx, ebx
mov rcx, rdi
call fcn.1400799f0
mov r11, qword [rsp + 0xa8]
mov r13d, eax
movsxd rbx, ebx
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x88], r11
lea rdx, [rbx + rbx + 0x20]
mov qword [rsp + 0xa8], rsi
call fcn.140063424
lea rcx, [rsp + 0xa8]
movsxd r9, r13d
mov r8, rbx
mov rdx, rdi
call fcn.1400637dc
mov r11, qword [rsp + 0xa8]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x138], r11
call fcn.14005b104
mov r8, qword [rsp + 0x138]
jmp 0x14009e1d9
mov rax, qword [rsp + 0x70]
cmp word [rax], si
jne 0x14009e2bc
lea rcx, [rsp + 0xa8]
call fcn.14005b104
lea rcx, [rsp + 0x50]
call fcn.14005b104
lea rcx, [rsp + 0xc8]
call fcn.14005b104
lea rcx, [rsp + 0x70]
call fcn.14005b104
lea rcx, [rsp + 0x98]
call fcn.14005b104
xor eax, eax
jmp 0x14009f055
mov r8, qword [rsp + 0x138]
mov rax, rdi
cmp bl, al
jne 0x14009e2e0
mov ecx, 0x2c
cmp word [r8], cx
je 0x14009e2e0
mov edi, 0x80070057
jmp 0x14009efff
add r8, 2
mov qword [rsp + 0x138], r8
test al, bl
je 0x14009e7a8
mov r12d, dword [rsp + 0x60]
mov r15b, byte [rsp + 0x148]
mov qword [rsp + 0x48], rsi
cmp qword [rsp + 0x58], rsi
je 0x14009e485
lea rcx, [rsp + 0x138]
call fcn.14005b154
mov r8, qword [rsp + 0x138]
movzx eax, word [r8]
mov rdx, r8
cmp ax, si
je 0x14009e379
mov ecx, 9
lea r9d, [rcx + 4]
lea r10d, [rcx + 0x17]
cmp cx, ax
ja 0x14009e34a
cmp ax, r9w
jbe 0x14009e367
cmp r10w, ax
je 0x14009e367
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
je 0x14009e379
jmp 0x14009e33f
cmp word [r8], si
je 0x14009e379
mov word [r8], si
mov r8, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
cmp word [rdx], si
je 0x14009e48d
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.140018978
cmp rax, rsi
je 0x14009e4b5
mov rdi, qword [rax + 0x18]
mov rbx, qword [rax + 8]
movabs rcx, 0x3fffffffffffffff
and rdi, rcx
mov rcx, rsi
test r15b, 8
je 0x14009e442
cmp byte [rbx], r14b
jne 0x14009e3dd
cmp byte [rbx + 1], 0xfe
jne 0x14009e3dd
mov ecx, 2
mov r13d, 0x4b0
jmp 0x14009e411
cmp byte [rbx], 0xfe
jne 0x14009e3f5
cmp byte [rbx + 1], r14b
jne 0x14009e3f5
mov ecx, 2
mov r13d, 0x4b1
jmp 0x14009e411
cmp byte [rbx], 0xef
jne 0x14009e414
cmp byte [rbx + 1], 0xbb
jne 0x14009e414
cmp byte [rbx + 2], 0xbf
jne 0x14009e414
mov ecx, 3
mov r13d, 0xfde9
mov r12d, esi
sub rdi, rcx
add rbx, rcx
cmp r13d, 0x4b1
je 0x14009e442
cmp r13d, 0x4b0
je 0x14009e442
cmp r12d, esi
je 0x14009e43f
mov rdx, rdi
mov rcx, rbx
call fcn.1400799f0
mov r13d, eax
mov r12d, esi
cmp r12d, esi
jg 0x14009e465
cmp r13d, 0x4b0
je 0x14009e465
lea rcx, [rsp + 0x48]
movsxd r9, r13d
mov r8, rdi
mov rdx, rbx
call fcn.1400637dc
jmp 0x14009e478
shr rdi, 1
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8, rdi
call fcn.140063888
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x138], r8
mov rbx, qword [rsp + 0x130]
mov dil, byte [rsp + 0x40]
mov r9, r8
mov qword [rsp + 0x148], r8
cmp dil, 3
jne 0x14009e4bf
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.1400629b8
jmp 0x14009e799
mov r8, qword [rsp + 0x138]
jmp 0x14009e48d
cmp dil, sil
je 0x14009e5b6
mov ecx, 1
lea rax, [0x140120668]
lea r15, [0x1401210f8]
cmp dil, cl
lea rcx, [rsp + 0x148]
cmove r15, rax
call fcn.140063620
mov r11, qword [rsp + 0x138]
movzx eax, word [r11]
mov rbx, r11
cmp ax, si
je 0x14009e57f
mov ecx, 0xd
lea r12d, [rcx - 3]
cmp ax, cx
jne 0x14009e527
cmp word [r11 + 2], r12w
jne 0x14009e52d
mov word [r11], si
add qword [rsp + 0x138], 2
jmp 0x14009e531
cmp ax, r12w
jne 0x14009e56a
mov word [r11], si
cmp dil, sil
jne 0x14009e546
lea rcx, [rsp + 0x148]
mov rdx, r15
call fcn.14006375c
lea rcx, [rsp + 0x148]
mov rdx, rbx
mov dil, sil
call fcn.14006375c
mov r11, qword [rsp + 0x138]
mov ecx, 0xd
lea rbx, [r11 + 2]
add r11, 2
mov qword [rsp + 0x138], r11
mov ax, word [r11]
cmp ax, si
jne 0x14009e50c
cmp word [rbx], si
je 0x14009e5a9
cmp dil, sil
jne 0x14009e599
lea rcx, [rsp + 0x148]
mov rdx, r15
call fcn.14006375c
lea rcx, [rsp + 0x148]
mov rdx, rbx
call fcn.14006375c
mov rcx, qword [rsp + 0x130]
jmp 0x14009e77a
cmp rbp, rsi
jge 0x14009e636
movzx eax, word [r8]
mov rbx, rsi
cmp ax, si
je 0x14009e607
mov r12d, 0xa
lea r9d, [r12 - 9]
cmp ax, r12w
jne 0x14009e5db
add rbx, r9
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e5d2
mov r9, qword [rsp + 0x148]
cmp r8, r9
jbe 0x14009e607
cmp word [r8 - 2], r12w
je 0x14009e607
inc rbx
lea rcx, [rsp + 0x148]
mov edx, 0x20
call fcn.140063694
mov rcx, qword [rsp + 0x148]
lea rdx, [0x14011d068]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14009e5a9
mov r12d, 0xa
jne 0x14009e6bb
movzx eax, word [r8]
mov rcx, r8
mov rdx, r8
cmp ax, si
je 0x14009e6a3
cmp ax, r12w
jne 0x14009e659
mov rdx, rcx
mov rcx, r8
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e64d
cmp r8, r9
jbe 0x14009e68c
cmp word [r8 - 2], r12w
je 0x14009e68c
cmp word [rcx], r12w
jne 0x14009e684
add rcx, 2
mov r8, rcx
jmp 0x14009e4a3
cmp rcx, r9
jbe 0x14009e6a3
lea rax, [rcx - 2]
mov r8d, 0xd
cmp word [rax], r8w
cmove rcx, rax
cmp word [rdx], r12w
jne 0x14009e6ad
add rdx, 2
sub rcx, rdx
sar rcx, 1
mov r8, rcx
jmp 0x14009e76a
mov r10d, 1
jmp 0x14009e6de
cmp word [r8], si
je 0x14009e6e3
cmp word [r8], r12w
jne 0x14009e6d2
sub rbp, r10
add r8, 2
mov qword [rsp + 0x138], r8
cmp rbp, r10
jg 0x14009e6c3
movzx eax, word [r8]
mov r9, qword [rsp + 0x90]
mov rdx, r8
mov rcx, r9
cmp ax, si
je 0x14009e764
mov r11d, 0xd
cmp rcx, rsi
je 0x14009e728
sub r9, r10
js 0x14009e764
jmp 0x14009e728
cmp ax, r11w
je 0x14009e72d
cmp ax, r12w
je 0x14009e72d
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e70c
cmp rcx, rsi
je 0x14009e737
cmp r9, rsi
je 0x14009e764
cmp r11w, word [r8]
jne 0x14009e749
add r8, 2
mov qword [rsp + 0x138], r8
cmp r12w, word [r8]
jne 0x14009e75b
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e700
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x148]
call fcn.1400702d4
mov rcx, rbx
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x70]
call fcn.1400629b8
lea rcx, [rsp + 0x148]
call fcn.14005b104
lea rcx, [rsp + 0x48]
call fcn.14005b104
jmp 0x14009ebed
lea rcx, [rsp + 0x80]
mov edx, 8
call fcn.1400633a8
mov bpl, byte [rsp + 0x148]
xor eax, eax
mov qword [rsp + 0xe0], rax
mov word [r15], si
mov rax, qword [0x14013a330]
cmp bpl, 2
mov qword [rsp + 0xd8], rax
lea r14, [rsp + 0xd8]
lea rax, [rsp + 0x78]
mov rbx, rsi
cmovne r14, rax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0xa0], r14
cmp byte [0x14013ccb1], sil
je 0x14009e826
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x556a
call fcn.140018d8c
mov dword [rsp + 0x68], esi
cmp bpl, 2
je 0x14009ea18
mov rcx, qword [rsp + 0x98]
mov rdi, rsi
call fcn.140006a4c
cmp eax, esi
je 0x14009e86a
mov rcx, qword [rsp + 0x98]
mov edx, 0x80000000
mov r8d, 7
call fcn.14001d810
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x14009e8a7
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x2000000
lea rcx, [rsp + 0x78]
mov r9d, 7
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
call fcn.140003864
mov rbx, qword [rsp + 0x78]
cmp qword [r14], rsi
je 0x14009e95f
mov rcx, qword [r14]
xor eax, eax
lea r9, [rsp + 0x88]
lea rdx, [rsp + 0x58]
lea r8d, [rax + 3]
mov byte [rsp + 0x58], sil
mov byte [rsp + 0x59], sil
mov byte [rsp + 0x5a], sil
mov word [rsp + 0x5b], ax
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11b, byte [rsp + 0x58]
cmp r11b, 0xff
jne 0x14009e90c
cmp byte [rsp + 0x59], 0xfe
jne 0x14009e949
mov edi, 2
mov r13d, 0x4b0
jmp 0x14009e945
cmp r11b, 0xfe
jne 0x14009e926
cmp byte [rsp + 0x59], 0xff
jne 0x14009e949
mov edi, 2
mov r13d, 0x4b1
jmp 0x14009e945
cmp r11b, 0xef
jne 0x14009e949
cmp byte [rsp + 0x59], 0xbb
jne 0x14009e949
cmp byte [rsp + 0x5a], 0xbf
jne 0x14009e949
mov edi, 3
mov r13d, 0xfde9
mov dword [rsp + 0x60], esi
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rdi
call fcn.14005c674
cmp rax, rsi
mov rbp, rax
jge 0x14009e9a4
cmp rbx, rsi
je 0x14009e973
cmp rbx, 0xffffffffffffffff
je 0x14009e973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14005b104
lea rcx, [rsp + 0xa8]
call fcn.14005b104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, esi
mov ecx, 1
cmove edi, ecx
jmp 0x14009f00c
cmp dword [rsp + 0x60], esi
je 0x14009ea10
mov rcx, qword [r14]
call fcn.1400e693c
cmp rax, 0x1000000
mov rdi, rax
jg 0x14009ea10
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0xa8]
call fcn.140063424
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [r14]
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rbp
call fcn.14005c674
mov rcx, qword [rsp + 0xa8]
mov rdx, rdi
call fcn.1400799f0
mov r13d, eax
mov bpl, byte [rsp + 0x148]
mov rax, qword [r14]
mov qword [rsp + 0xd0], rax
cmp rax, rsi
jne 0x14009ea32
mov edi, 6
jmp 0x14009efde
xor ecx, ecx
mov edi, esi
mov qword [rsp + 0x88], 0x186a0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rsp + 0x40]
cmp al, 3
jne 0x14009ebff
mov rax, qword [rsp + 0x48]
mov ebp, 0x6d
mov rcx, rsi
neg rax
mov qword [rsp + 0x60], rsi
mov r14d, esi
sbb r15d, r15d
mov qword [rsp + 0x58], rcx
lea r12d, [rbp - 0x63]
and r15d, 0xfffc0001
add r15d, 0x40000
mov r9d, r15d
lea rdx, [r9 + rcx + 1]
lea rcx, [rsp + 0x60]
call fcn.140063424
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
add rax, rdi
lea r9, [rsp + 0x78]
mov rdx, rax
mov r8d, r15d
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rsp + 0x78]
mov r9d, r15d
mov r8d, eax
cmp rdx, r9
mov dword [rsp + 0x68], eax
cmovg rdx, r9
mov qword [rsp + 0x78], rdx
cmp rdx, rsi
jne 0x14009eb2b
cmp eax, esi
jne 0x14009eb8d
cmp byte [rsp + 0x148], 2
jne 0x14009eb19
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
je 0x14009eb88
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x68]
mov r9d, r15d
mov r10d, 1
sub qword [rsp + 0x88], r10
js 0x14009eb9a
jmp 0x14009eb31
mov r10d, 1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xc0]
movsx eax, byte [rax]
add rcx, rdx
mov byte [rcx + rdi], sil
mov qword [rsp + 0x58], rcx
cmp qword [rsp + 0x48], rsi
je 0x14009ea89
cmp r8d, esi
je 0x14009ea89
cmp r12w, ax
jne 0x14009ea89
mov rax, qword [rsp + 0x90]
sub rax, r10
cmp rax, rsi
mov qword [rsp + 0x90], rax
jle 0x14009eb9a
jmp 0x14009ea89
mov r14d, ebp
jmp 0x14009eb9a
cmp qword [rsp + 0x58], rsi
jne 0x14009eb9a
mov r14d, 0x26
lea rcx, [rsp + 0x60]
mov edx, r13d
call fcn.14006ca94
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x130]
mov r8, rax
call fcn.1400629b8
lea rcx, [rsp + 0x60]
movsxd rdi, r14d
call fcn.14005b104
cmp rbx, rsi
je 0x14009ebdd
cmp rbx, 0xffffffffffffffff
je 0x14009ebdd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14005b104
mov rsi, rdi
lea rcx, [rsp + 0xa8]
call fcn.14005b104
jmp 0x14009f024
cmp al, sil
je 0x14009ecf6
mov rax, qword [rsp + 0xc0]
lea rdx, [0x14011d308]
lea rcx, [rsp + 0x88]
cmp rax, rsi
cmovne rdx, rax
or r8, 0xffffffffffffffff
call fcn.1400702f0
lea rcx, [rsp + 0x48]
mov r15, rsi
and r12b, 0xf3
call fcn.140063620
or r12b, 1
mov ebp, 0x6d
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov r9b, r12b
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
movsxd r14, eax
cmp r14d, esi
jne 0x14009ec82
cmp byte [rsp + 0x148], 2
jne 0x14009ec82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
je 0x14009ecc8
lea rcx, [rsp + 0x48]
mov edx, r13d
call fcn.14006ca94
lea rcx, [rsp + 0x50]
add r15, r14
mov rdx, rax
call fcn.14006375c
mov rax, qword [rsp + 0x48]
mov word [rax], si
cmp r14d, esi
je 0x14009eccc
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.14006375c
mov r14, qword [rsp + 0xa0]
jmp 0x14009ec49
mov edi, ebp
jmp 0x14009ecd9
mov r14d, 0x26
cmp r15, rsi
cmove edi, r14d
lea rcx, [rsp + 0x48]
mov r13d, 0x4b0
call fcn.14005b104
lea rcx, [rsp + 0x88]
jmp 0x14009efc9
mov rax, qword [rsp + 0x48]
cmp rax, rsi
jge 0x14009ed8f
mov r15, rsi
mov ebp, 1
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov r9b, r12b
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
cmp eax, esi
je 0x14009ed32
add r15, rbp
jmp 0x14009ed0c
mov bpl, byte [rsp + 0x148]
cmp bpl, 2
jne 0x14009ed53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, 0x6d
cmp eax, ebp
jne 0x14009ed53
mov edi, ebp
jmp 0x14009ed60
mov r14d, 0x26
cmp r15, rsi
cmove edi, r14d
lea rcx, [rsp + 0x50]
mov edx, 0x20
mov r13d, 0x4b0
call fcn.140063424
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14011d068]
mov r8, r15
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14009efce
jne 0x14009edeb
or r12b, 1
mov rax, r15
mov r15, qword [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x68]
mov r9b, r12b
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
cmp eax, esi
jne 0x14009ed95
mov qword [rsp + 0x50], r15
cmp bpl, 2
jne 0x14009efce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, 0x6d
jmp 0x14009eeae
mov ecx, 1
cmp rax, rcx
lea ebp, [rcx + 0x6c]
lea r14d, [rcx + 0x25]
jle 0x14009ee5a
mov r15, rcx
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov r9b, r12b
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
cmp eax, esi
je 0x14009ee31
inc r15
cmp r15, qword [rsp + 0x48]
jl 0x14009edff
jmp 0x14009ee55
cmp byte [rsp + 0x148], 2
jne 0x14009ee49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x14009ee49
mov edi, ebp
jmp 0x14009ee55
mov eax, 1
cmp r15, rax
cmovle edi, r14d
mov r15, qword [rsp + 0x50]
mov byte [r15], sil
mov r15d, 1
cmp qword [rsp + 0x90], r15
jne 0x14009eebd
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x68]
or r12b, r15b
lea rdx, [rsp + 0x50]
mov r9b, r12b
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
cmp eax, esi
jne 0x14009efce
cmp byte [rsp + 0x148], 2
jne 0x14009efce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x14009efce
mov edi, ebp
jmp 0x14009efce
lea rcx, [rsp + 0x48]
call fcn.140063620
mov rcx, qword [rsp + 0x90]
mov rdx, r15
movsxd rax, ecx
mov dword [rsp + 0x60], edx
lea r15, [0x1401210f8]
mov qword [rsp + 0x88], rax
cmp rax, rsi
je 0x14009eefe
sub rcx, rdx
mov qword [rsp + 0x90], rcx
js 0x14009efbe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
mov r9b, r12b
mov word [rax], si
or r9b, dl
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c7d4
cmp eax, esi
je 0x14009ef9e
lea rcx, [rsp + 0x48]
mov edx, r13d
call fcn.14006ca94
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x60], esi
mov rdx, rax
call fcn.14006375c
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
cmp rax, rsi
je 0x14009ef67
cmp rcx, rsi
jle 0x14009efbe
mov edx, 1
cmp byte [rsp + 0x6c], sil
jne 0x14009eee8
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.14006375c
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov edx, 1
jmp 0x14009eee8
cmp byte [rsp + 0x148], 2
jne 0x14009efb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x14009efb6
mov edi, ebp
jmp 0x14009efbe
cmp dword [rsp + 0x60], esi
cmovne edi, r14d
mov r13d, 0x4b0
lea rcx, [rsp + 0x48]
call fcn.14005b104
lea rcx, [rsp + 0x50]
mov edx, r13d
call fcn.14006ca94
mov r15, rax
cmp rbx, rsi
je 0x14009eff2
cmp rbx, 0xffffffffffffffff
je 0x14009eff2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14005b104
lea rcx, [rsp + 0xa8]
call fcn.14005b104
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x130]
mov r8, r15
call fcn.1400629b8
movsxd rsi, edi
lea rcx, [rsp + 0x50]
call fcn.14005b104
lea rcx, [rsp + 0xc8]
call fcn.14005b104
lea rcx, [rsp + 0x70]
call fcn.14005b104
lea rcx, [rsp + 0x98]
call fcn.14005b104
mov rax, rsi
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret