Function at 0x14009dc54
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 + 0x58], esi
mov ebp, 0x4b1
mov byte [rsp + 0x148], bl
lea edx, [rsi + 0x20]
lea ecx, [rsi + 0xd]
lea r14d, [rsi + 1]
lea r12d, [rsi + 5]
cmp di, word [r11]
ja 0x14009dcb8
cmp word [r11], cx
jbe 0x14009dcbe
cmp dx, word [r11]
jne 0x14009dccb
mov r13d, esi
mov dword [rsp + 0x58], r14d
jmp 0x14009de34
lea rcx, str._UNI
mov r8d, 4
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dcf0
mov r13d, 0x4b0
jmp 0x14009de0f
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.14005c480
cmp al, sil
jne 0x14009dce5
lea rcx, str._UNIB
mov r8d, r12d
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dd29
mov r13d, ebp
jmp 0x14009de0f
lea rcx, str._UNICODEB
mov r8d, edi
mov rdx, r11
call fcn.14005c480
cmp al, sil
jne 0x14009dd21
lea rcx, [0x140128c94]
mov r8d, r12d
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dd5f
mov r13d, esi
jmp 0x14009de0f
lea rcx, str._GBK
mov r8d, 4
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dd84
mov r13d, 0x3a8
jmp 0x14009de0f
lea rcx, str._BIG5
mov r8d, r12d
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dda3
mov r13d, 0x3b6
jmp 0x14009de0f
lea rcx, [0x140128c7c]
mov r8d, r12d
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009ddc2
mov r13d, 0xfde9
jmp 0x14009de0f
lea rcx, str._UTF7
mov r8d, r12d
mov rdx, r11
call fcn.14005c480
cmp al, sil
je 0x14009dde1
mov r13d, 0xfde8
jmp 0x14009de0f
mov eax, 0x2d
cmp ax, word [r11]
jne 0x14009de0f
lea rcx, [r11 + 2]
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, di
ja 0x14009de0f
mov r11, rcx
mov qword [rsp + 0x138], rcx
call fcn.140064758
mov r13, rax
mov edx, 0x20
lea ecx, [rdx - 0x13]
jmp 0x14009de34
cmp di, ax
ja 0x14009de23
cmp ax, cx
jbe 0x14009de3d
cmp dx, ax
je 0x14009de3d
add r11, 2
mov qword [rsp + 0x138], r11
movzx eax, word [r11]
cmp ax, si
jne 0x14009de19
lea rcx, [rsp + 0x138]
call fcn.14005aec8
mov bpl, sil
mov edi, 0x2a
jmp 0x14009debe
lea rdx, [rsp + 0x138]
lea rcx, str.fix
mov r8d, 4
call fcn.140065d7c
cmp al, sil
je 0x14009de79
or bpl, 2
jmp 0x14009debe
lea rdx, [rsp + 0x138]
lea rcx, [0x140122ed4]
mov r8d, 3
call fcn.140065d7c
cmp al, sil
je 0x14009de9e
or bpl, 4
jmp 0x14009debe
lea rdx, [rsp + 0x138]
lea rcx, [0x140128c64]
mov r8d, r12d
call fcn.140065d7c
cmp al, sil
je 0x14009decb
or bpl, 0xc
mov rax, qword [rsp + 0x138]
cmp di, word [rax]
je 0x14009de54
mov al, bpl
lea rdx, [0x14011c618]
lea rcx, [rsp + 0xb0]
and al, 0xc
mov byte [rsp + 0x70], al
call fcn.14006ff14
lea rdx, [0x140128c50]
lea rcx, [rsp + 0x80]
call fcn.14006ff14
mov edi, 0x2c
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x138]
mov r9d, edi
mov rcx, r15
mov r12, r14
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x88], rsi
mov word [rsp + 0x20], si
call fcn.140054460
mov r9, qword [rsp + 0xb0]
lea rcx, [0x140128c4c]
mov rdx, r9
mov qword [rsp + 0x138], rax
call fcn.14005c518
cmp al, sil
je 0x14009df7b
mov bl, 9
mov qword [rsp + 0x88], r14
mov byte [rsp + 0x148], bl
lea rcx, [0x140128c48]
mov rdx, r9
call fcn.14005c518
cmp al, sil
je 0x14009e063
mov qword [rsp + 0x88], r14
or bl, r14b
mov byte [rsp + 0x148], bl
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0xa0], rsi
call fcn.1400632a0
mov rdx, qword [rsp + 0x138]
lea r8, [rsp + 0xd8]
xor r9d, r9d
mov rcx, r15
mov byte [rsp + 0x20], r14b
call fcn.140079e84
mov r11, qword [rsp + 0xd8]
mov qword [rsp + 0x138], r11
cmp word [r11], di
jne 0x14009e1af
lea rcx, [rsp + 0xb8]
call fcn.1400632a0
add qword [rsp + 0x138], 2
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x138]
mov r8d, edi
call fcn.140067288
mov r11, qword [rsp + 0xb8]
lea rcx, [0x140128c44]
mov rdx, r11
mov qword [rsp + 0x68], r11
call fcn.14005c518
cmp al, sil
je 0x14009e0a8
lea rbx, [0x140128c40]
mov byte [rsp + 0x40], 2
mov qword [rsp + 0xa0], rbx
mov bl, byte [rsp + 0x148]
jmp 0x14009e170
cmp word [r9], si
je 0x14009df9b
lea rcx, [0x14011dd0c]
mov rdx, r9
call fcn.14005c518
cmp al, sil
jne 0x14009df9b
lea rcx, [0x14011d494]
mov rdx, r9
call fcn.14005c518
cmp al, sil
je 0x14009dfa5
mov bl, 2
or bpl, 0x10
jmp 0x14009df9e
lea rcx, [0x140128c3c]
mov rdx, r11
call fcn.14005c518
cmp al, sil
je 0x14009e0c6
mov byte [rsp + 0x40], 3
jmp 0x14009e170
lea rcx, [0x140128c38]
mov rdx, r11
call fcn.14005c518
cmp al, sil
je 0x14009e0f4
mov byte [rsp + 0x40], 3
mov r12, rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x90], rsi
jmp 0x14009e170
lea rcx, [0x1401215fc]
mov rdx, r11
call fcn.14005c518
cmp al, sil
je 0x14009e11e
lea rax, [0x140128c34]
mov byte [rsp + 0x40], r14b
mov qword [rsp + 0xa0], rax
jmp 0x14009e170
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140074228
mov rax, qword [rsp + 0x68]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x14009e163
add rax, 2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
call fcn.140074228
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
mov r12, qword [rsp + 0x48]
mov qword [rsp + 0xa8], r12
lea rcx, [rsp + 0xb8]
call fcn.14005aef8
mov r11, qword [rsp + 0x138]
cmp word [r11], di
jne 0x14009e1af
add r11, 2
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x138]
mov r8d, edi
mov qword [rsp + 0x138], r11
call fcn.140067288
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, r15
call fcn.140003a44
lea rcx, [rsp + 0x50]
mov edx, 8
call fcn.140063028
cmp r13d, esi
mov r15, qword [rsp + 0x50]
mov word [r15], si
mov edi, r14d
jl 0x14009f358
lea rcx, [rsp + 0xc0]
call fcn.140062fc4
mov rax, qword [rsp + 0xb0]
mov ecx, 0x75
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd0], rsi
mov r14d, 0xff
cmp cx, word [rax]
jne 0x14009e478
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x14009e478
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x14009e478
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 0x14009e273
add r10, 2
mov qword [rsp + 0x148], r10
lea rcx, [rsp + 0x148]
call fcn.1400e8c3c
mov rcx, qword [rsp + 0x148]
cmp rcx, r10
je 0x14009e2a0
cmp word [rcx - 2], r9w
jne 0x14009e2a0
mov word [rcx - 2], si
mov rcx, qword [rsp + 0x148]
cmp dx, word [rcx]
jne 0x14009e2bc
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 0x14009e2eb
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x148], rcx
cmp r9w, word [rcx]
jne 0x14009e2e6
mov word [rcx], si
mov rcx, qword [rsp + 0x148]
cmp word [rcx], si
jne 0x14009e2c9
lea rdx, [rsp + 0xc0]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rsi
call fcn.140055344
mov rbx, qword [rsp + 0xc8]
cmp ebx, esi
mov r11, qword [rsp + 0xc0]
jle 0x14009e330
mov rax, qword [rsp + 0xd0]
lea r8, [r11 + rax]
mov qword [rsp + 0x138], r8
jmp 0x14009e338
mov r8, qword [rsp + 0x138]
movsx edx, byte [r8]
mov rcx, rsi
cmp edx, r14d
jne 0x14009e35d
movsx eax, byte [r8 + 1]
cmp eax, 0xfe
jne 0x14009e35d
mov ecx, 2
mov r13d, 0x4b0
jmp 0x14009e3a7
cmp edx, 0xfe
jne 0x14009e37c
movsx eax, byte [r8 + 1]
cmp eax, r14d
jne 0x14009e37c
mov ecx, 2
mov r13d, 0x4b1
jmp 0x14009e3a7
cmp edx, 0xef
jne 0x14009e3a7
movsx eax, byte [r8 + 1]
cmp eax, 0xbb
jne 0x14009e3a7
movsx eax, byte [r8 + 2]
cmp eax, 0xbf
jne 0x14009e3a7
mov ecx, 3
mov r13d, 0xfde9
sub ebx, ecx
lea rdi, [rcx + r8]
cmp r13d, 0x4b1
jne 0x14009e3ec
movsxd rdx, ebx
and rdx, 0xfffffffffffffffe
add rdx, rdi
cmp rdi, rdx
ja 0x14009e3e0
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 0x14009e3c5
mov r8, qword [rsp + 0x138]
mov ebp, dword [rsp + 0x58]
or ebp, 4
jmp 0x14009e50e
cmp r13d, 0x4b0
je 0x14009e3e0
mov ebp, dword [rsp + 0x58]
cmp ebp, esi
je 0x14009e413
movsxd rdx, ebx
mov rcx, rdi
call fcn.140079650
mov r11, qword [rsp + 0xc0]
mov r13d, eax
movsxd rbx, ebx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], r11
lea rdx, [rbx + rbx + 0x20]
mov qword [rsp + 0xc0], rsi
call fcn.1400630a4
lea rcx, [rsp + 0xc0]
movsxd r9, r13d
mov r8, rbx
mov rdx, rdi
call fcn.14006345c
mov r11, qword [rsp + 0xc0]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x138], r11
call fcn.14005aef8
mov r8, qword [rsp + 0x138]
jmp 0x14009e3e4
mov rax, qword [rsp + 0x80]
cmp word [rax], si
jne 0x14009e4ca
lea rcx, [rsp + 0xc0]
call fcn.14005aef8
lea rcx, [rsp + 0x50]
call fcn.14005aef8
lea rcx, [rsp + 0xd8]
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.14005aef8
lea rcx, [rsp + 0xb0]
call fcn.14005aef8
xor eax, eax
jmp 0x14009f3a7
mov r8, qword [rsp + 0x138]
mov rax, rdi
cmp bl, al
jne 0x14009e4ee
mov ecx, 0x2c
cmp word [r8], cx
je 0x14009e4ee
mov edi, 0x80070057
jmp 0x14009f34b
add r8, 2
mov qword [rsp + 0x138], r8
test al, bl
je 0x14009e9b0
mov ebp, dword [rsp + 0x58]
mov r15b, byte [rsp + 0x148]
mov qword [rsp + 0x68], rsi
cmp qword [rsp + 0x88], rsi
je 0x14009e691
lea rcx, [rsp + 0x138]
call fcn.14005aec8
mov r8, qword [rsp + 0x138]
movzx eax, word [r8]
mov rdx, r8
cmp ax, si
je 0x14009e589
mov ecx, 9
lea r9d, [rcx + 4]
lea r10d, [rcx + 0x17]
cmp cx, ax
ja 0x14009e55a
cmp ax, r9w
jbe 0x14009e577
cmp r10w, ax
je 0x14009e577
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
je 0x14009e589
jmp 0x14009e54f
cmp word [r8], si
je 0x14009e589
mov word [r8], si
mov r8, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
cmp word [rdx], si
je 0x14009e699
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.1400189c4
cmp rax, rsi
je 0x14009e6c4
mov rdi, qword [rax + 0x18]
mov rbx, qword [rax + 8]
movabs rcx, 0x3fffffffffffffff
and rdi, rcx
mov rcx, rsi
test r15b, 8
je 0x14009e64f
cmp byte [rbx], r14b
jne 0x14009e5ed
cmp byte [rbx + 1], 0xfe
jne 0x14009e5ed
mov ecx, 2
mov r13d, 0x4b0
jmp 0x14009e621
cmp byte [rbx], 0xfe
jne 0x14009e605
cmp byte [rbx + 1], r14b
jne 0x14009e605
mov ecx, 2
mov r13d, 0x4b1
jmp 0x14009e621
cmp byte [rbx], 0xef
jne 0x14009e623
cmp byte [rbx + 1], 0xbb
jne 0x14009e623
cmp byte [rbx + 2], 0xbf
jne 0x14009e623
mov ecx, 3
mov r13d, 0xfde9
mov ebp, esi
sub rdi, rcx
add rbx, rcx
cmp r13d, 0x4b1
je 0x14009e64f
cmp r13d, 0x4b0
je 0x14009e64f
cmp ebp, esi
je 0x14009e64d
mov rdx, rdi
mov rcx, rbx
call fcn.140079650
mov r13d, eax
mov ebp, esi
cmp ebp, esi
jg 0x14009e671
cmp r13d, 0x4b0
je 0x14009e671
lea rcx, [rsp + 0x68]
movsxd r9, r13d
mov r8, rdi
mov rdx, rbx
call fcn.14006345c
jmp 0x14009e684
shr rdi, 1
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov r8, rdi
call fcn.140063508
mov r8, qword [rsp + 0x68]
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 0x14009e6ce
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call fcn.140062600
jmp 0x14009e9a1
mov r8, qword [rsp + 0x138]
jmp 0x14009e699
cmp dil, sil
je 0x14009e7c3
mov ecx, 1
lea rax, [0x140120648]
lea r15, [0x1401210d8]
cmp dil, cl
lea rcx, [rsp + 0x148]
cmove r15, rax
call fcn.1400632a0
mov r11, qword [rsp + 0x138]
movzx eax, word [r11]
mov rbx, r11
cmp ax, si
je 0x14009e78c
mov ebp, 0xa
lea ecx, [rbp + 3]
cmp ax, cx
jne 0x14009e735
cmp word [r11 + 2], bp
jne 0x14009e73a
mov word [r11], si
add qword [rsp + 0x138], 2
jmp 0x14009e73e
cmp ax, bp
jne 0x14009e777
mov word [r11], si
cmp dil, sil
jne 0x14009e753
lea rcx, [rsp + 0x148]
mov rdx, r15
call fcn.1400633dc
lea rcx, [rsp + 0x148]
mov rdx, rbx
mov dil, sil
call fcn.1400633dc
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 0x14009e71a
cmp word [rbx], si
je 0x14009e7b6
cmp dil, sil
jne 0x14009e7a6
lea rcx, [rsp + 0x148]
mov rdx, r15
call fcn.1400633dc
lea rcx, [rsp + 0x148]
mov rdx, rbx
call fcn.1400633dc
mov rcx, qword [rsp + 0x130]
jmp 0x14009e97f
cmp r12, rsi
jge 0x14009e840
movzx eax, word [r8]
mov rbx, rsi
cmp ax, si
je 0x14009e811
mov ebp, 0xa
lea r9d, [rbp - 9]
cmp ax, bp
jne 0x14009e7e5
add rbx, r9
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e7dd
mov r9, qword [rsp + 0x148]
cmp r8, r9
jbe 0x14009e811
cmp word [r8 - 2], bp
je 0x14009e811
inc rbx
lea rcx, [rsp + 0x148]
mov edx, 0x20
call fcn.140063314
mov rcx, qword [rsp + 0x148]
lea rdx, [0x14011d048]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14009e7b6
mov ebp, 0xa
jne 0x14009e8c1
movzx eax, word [r8]
mov rcx, r8
mov rdx, r8
cmp ax, si
je 0x14009e8aa
cmp ax, bp
jne 0x14009e861
mov rdx, rcx
mov rcx, r8
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e856
cmp r8, r9
jbe 0x14009e893
cmp word [r8 - 2], bp
je 0x14009e893
cmp word [rcx], bp
jne 0x14009e88b
add rcx, 2
mov r8, rcx
jmp 0x14009e6af
cmp rcx, r9
jbe 0x14009e8aa
lea rax, [rcx - 2]
mov r8d, 0xd
cmp word [rax], r8w
cmove rcx, rax
cmp word [rdx], bp
jne 0x14009e8b3
add rdx, 2
sub rcx, rdx
sar rcx, 1
mov r8, rcx
jmp 0x14009e96f
mov r10d, 1
jmp 0x14009e8e4
cmp word [r8], si
je 0x14009e8e9
cmp word [r8], bp
jne 0x14009e8d8
sub r12, r10
add r8, 2
mov qword [rsp + 0x138], r8
cmp r12, r10
jg 0x14009e8c9
movzx eax, word [r8]
mov r9, qword [rsp + 0x90]
mov rdx, r8
mov rcx, r9
cmp ax, si
je 0x14009e969
mov r11d, 0xd
cmp rcx, rsi
je 0x14009e92d
sub r9, r10
js 0x14009e969
jmp 0x14009e92d
cmp ax, r11w
je 0x14009e932
cmp ax, bp
je 0x14009e932
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e912
cmp rcx, rsi
je 0x14009e93c
cmp r9, rsi
je 0x14009e969
cmp r11w, word [r8]
jne 0x14009e94e
add r8, 2
mov qword [rsp + 0x138], r8
cmp bp, word [r8]
jne 0x14009e960
add r8, 2
mov qword [rsp + 0x138], r8
mov ax, word [r8]
cmp ax, si
jne 0x14009e906
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x148]
call fcn.14006ff38
mov rcx, rbx
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x80]
call fcn.140062600
lea rcx, [rsp + 0x148]
call fcn.14005aef8
lea rcx, [rsp + 0x68]
call fcn.14005aef8
jmp 0x14009ee3a
lea rcx, [rsp + 0x88]
mov edx, 8
call fcn.140063028
mov r12b, byte [rsp + 0x148]
xor eax, eax
mov qword [rsp + 0xe8], rax
mov word [r15], si
mov rax, qword [0x14013a330]
cmp r12b, 2
mov qword [rsp + 0xe0], rax
lea r14, [rsp + 0xe0]
lea rax, [rsp + 0xb8]
mov rbx, rsi
cmovne r14, rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x68], r14
cmp byte [0x14013ccb1], sil
je 0x14009ea31
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x5532
call fcn.140018dd8
mov dword [rsp + 0x60], esi
cmp r12b, 2
je 0x14009ec45
cmp byte [0x14013ccb1], sil
je 0x14009ea61
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x553d
call fcn.140018dd8
mov rcx, qword [rsp + 0xb0]
mov rdi, rsi
call fcn.140006a78
cmp eax, esi
je 0x14009ea9a
mov rcx, qword [rsp + 0xb0]
mov edx, 0x80000000
mov r8d, 7
call fcn.14001d85c
mov rbx, rax
mov qword [rsp + 0xb8], rax
jmp 0x14009eadd
mov rdx, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x2000000
lea rcx, [rsp + 0xb8]
mov r9d, 7
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
call fcn.140003888
mov rbx, qword [rsp + 0xb8]
cmp qword [r14], rsi
je 0x14009eb8f
mov rcx, qword [r14]
xor eax, eax
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x78]
lea r8d, [rax + 3]
mov byte [rsp + 0x78], sil
mov byte [rsp + 0x79], sil
mov byte [rsp + 0x7a], sil
mov word [rsp + 0x7b], ax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11b, byte [rsp + 0x78]
cmp r11b, 0xff
jne 0x14009eb3c
cmp byte [rsp + 0x79], 0xfe
jne 0x14009eb79
mov edi, 2
mov r13d, 0x4b0
jmp 0x14009eb75
cmp r11b, 0xfe
jne 0x14009eb56
cmp byte [rsp + 0x79], 0xff
jne 0x14009eb79
mov edi, 2
mov r13d, 0x4b1
jmp 0x14009eb75
cmp r11b, 0xef
jne 0x14009eb79
cmp byte [rsp + 0x79], 0xbb
jne 0x14009eb79
cmp byte [rsp + 0x7a], 0xbf
jne 0x14009eb79
mov edi, 3
mov r13d, 0xfde9
mov dword [rsp + 0x58], esi
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rdi
call fcn.14005c3c8
cmp rax, rsi
mov r12, rax
jge 0x14009ebd4
cmp rbx, rsi
je 0x14009eba3
cmp rbx, 0xffffffffffffffff
je 0x14009eba3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x88]
call fcn.14005aef8
lea rcx, [rsp + 0xc0]
call fcn.14005aef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, esi
mov ecx, 1
cmove edi, ecx
jmp 0x14009f358
cmp dword [rsp + 0x58], esi
je 0x14009ec3d
mov rcx, qword [r14]
call fcn.1400e5e74
cmp rax, 0x1000000
mov rdi, rax
jg 0x14009ec3d
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0xc0]
call fcn.1400630a4
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [r14]
lea r9, [rsp + 0x48]
mov r8d, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, r12
call fcn.14005c3c8
mov rcx, qword [rsp + 0xc0]
mov rdx, rdi
call fcn.140079650
mov r13d, eax
mov r12b, byte [rsp + 0x148]
cmp qword [r14], rsi
jne 0x14009ec54
mov edi, 6
jmp 0x14009f32a
mov edi, esi
cmp byte [0x14013ccb1], sil
je 0x14009ec78
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x5558
call fcn.140018dd8
xor ecx, ecx
mov qword [rsp + 0x98], 0x186a0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rsp + 0x40]
cmp al, 3
jne 0x14009ee4c
mov rax, qword [rsp + 0xa8]
mov ebp, 0xa
mov rcx, rsi
neg rax
mov qword [rsp + 0x48], 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 + 0x48]
call fcn.1400630a4
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
add rax, rdi
lea r9, [rsp + 0x78]
mov r8d, r15d
mov qword [rsp + 0xa0], rax
mov rdx, rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rsp + 0x78]
mov r9d, r15d
cmp rdx, r9
mov r8d, eax
mov dword [rsp + 0x60], eax
cmovg rdx, r9
mov qword [rsp + 0x78], rdx
cmp rdx, rsi
jne 0x14009ed73
cmp eax, esi
jne 0x14009edd7
cmp byte [rsp + 0x148], 2
jne 0x14009ed61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r12d
je 0x14009edd2
mov rdx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x60]
mov r9d, r15d
mov r10d, 1
sub qword [rsp + 0x98], r10
js 0x14009ede4
jmp 0x14009ed79
mov r10d, 1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xa0]
movsx eax, byte [rax]
add rcx, rdx
mov byte [rcx + rdi], sil
mov qword [rsp + 0x58], rcx
cmp qword [rsp + 0xa8], rsi
je 0x14009ecd0
cmp r8d, esi
je 0x14009ecd0
cmp bp, ax
jne 0x14009ecd0
mov rax, qword [rsp + 0x90]
sub rax, r10
cmp rax, rsi
mov qword [rsp + 0x90], rax
jle 0x14009ede4
jmp 0x14009ecd0
mov r14d, r12d
jmp 0x14009ede4
cmp qword [rsp + 0x58], rsi
jne 0x14009ede4
mov r14d, 0x26
lea rcx, [rsp + 0x48]
mov edx, r13d
call fcn.14006c710
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x130]
mov r8, rax
call fcn.140062600
lea rcx, [rsp + 0x48]
movsxd rdi, r14d
call fcn.14005aef8
cmp rbx, rsi
je 0x14009ee2a
cmp rbx, 0xffffffffffffffff
je 0x14009ee2a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x88]
call fcn.14005aef8
mov rsi, rdi
lea rcx, [rsp + 0xc0]
call fcn.14005aef8
jmp 0x14009f373
cmp al, sil
je 0x14009ef43
mov rax, qword [rsp + 0xa0]
lea rdx, [0x14011d2e8]
lea rcx, [rsp + 0x98]
cmp rax, rsi
cmovne rdx, rax
or r8, 0xffffffffffffffff
call fcn.14006ff54
lea rcx, [rsp + 0x48]
mov r15, rsi
and bpl, 0xf3
call fcn.1400632a0
or bpl, 1
mov r12d, 0x6d
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x48]
mov r9b, bpl
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c450
movsxd r14, eax
cmp r14d, esi
jne 0x14009eed1
cmp byte [rsp + 0x148], 2
jne 0x14009eed1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r12d
je 0x14009ef14
lea rcx, [rsp + 0x48]
mov edx, r13d
call fcn.14006c710
lea rcx, [rsp + 0x50]
add r15, r14
mov rdx, rax
call fcn.1400633dc
mov rax, qword [rsp + 0x48]
mov word [rax], si
cmp r14d, esi
je 0x14009ef19
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.1400633dc
mov r14, qword [rsp + 0x68]
jmp 0x14009ee97
mov edi, r12d
jmp 0x14009ef26
mov r14d, 0x26
cmp r15, rsi
cmove edi, r14d
lea rcx, [rsp + 0x48]
mov r13d, 0x4b0
call fcn.14005aef8
lea rcx, [rsp + 0x98]
jmp 0x14009f2f3
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
jge 0x14009efe3
mov r15, rsi
mov r12d, 1
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r9b, bpl
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c450
cmp eax, esi
je 0x14009ef83
add r15, r12
jmp 0x14009ef5d
mov r12b, byte [rsp + 0x148]
cmp r12b, 2
jne 0x14009efa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, 0x6d
cmp eax, r12d
jne 0x14009efa7
mov edi, r12d
jmp 0x14009efb4
mov r14d, 0x26
cmp r15, rsi
cmove edi, r14d
lea rcx, [rsp + 0x50]
mov edx, 0x20
mov r13d, 0x4b0
call fcn.1400630a4
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14011d048]
mov r8, r15
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14009f2f8
jne 0x14009f040
or bpl, 1
mov rax, r15
mov r15, qword [rsp + 0x88]
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x60]
mov r9b, bpl
mov r8d, r13d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14006c450
cmp eax, esi
jne 0x14009efe9
mov qword [rsp + 0x50], r15
cmp r12b, 2
jne 0x14009f2f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, 0x6d
jmp 0x14009f1b9
cmp byte [0x14013ccb1], sil
je 0x14009f065
lea rdx, str.DBG__d:_n_d_r_n
lea rcx, [0x14013d130]
mov r9, rax
mov r8d, 0x5591
call fcn.140018dd8
mov ecx, 1
cmp qword [rsp + 0xa8], rcx
mov rax, rcx
mov qword [rsp + 0xa0], rcx
lea r12d, [rcx + 0x6c]
lea r14d, [rcx + 0x25]
jle 0x14009f120
mov r15, rcx
cmp byte [0x14013ccb1], sil
je 0x14009f0b0
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x5594
call fcn.140018dd8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r9b, bpl
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c450
cmp eax, esi
je 0x14009f0f2
mov rax, qword [rsp + 0xa0]
add rax, r15
cmp rax, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rax
jl 0x14009f08e
jmp 0x14009f11b
cmp byte [rsp + 0x148], 2
jne 0x14009f10c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r12d
jne 0x14009f10c
mov edi, r12d
jmp 0x14009f11b
mov rax, qword [rsp + 0xa0]
cmp rax, r15
cmovle edi, r14d
mov r15, qword [rsp + 0x50]
mov byte [r15], sil
mov al, byte [0x14013ccb1]
cmp al, sil
je 0x14009f14d
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x5599
call fcn.140018dd8
mov al, byte [0x14013ccb1]
mov r15d, 1
cmp qword [rsp + 0x90], r15
jne 0x14009f1ca
cmp al, sil
je 0x14009f17b
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x559c
call fcn.140018dd8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
or bpl, r15b
lea rdx, [rsp + 0x50]
mov r9b, bpl
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c450
cmp eax, esi
jne 0x14009f2f8
cmp byte [rsp + 0x148], 2
jne 0x14009f2f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r12d
jne 0x14009f2f8
mov edi, r12d
jmp 0x14009f2f8
cmp al, sil
je 0x14009f1e8
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x55a0
call fcn.140018dd8
lea rcx, [rsp + 0x48]
call fcn.1400632a0
mov rcx, qword [rsp + 0x90]
mov rdx, r15
movsxd rax, ecx
mov dword [rsp + 0x58], edx
lea r15, [0x1401210d8]
mov qword [rsp + 0x98], rax
cmp rax, rsi
je 0x14009f229
sub rcx, rdx
mov qword [rsp + 0x90], rcx
js 0x14009f2e8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
mov r9b, bpl
mov word [rax], si
or r9b, dl
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x48]
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.14006c450
cmp eax, esi
je 0x14009f2c6
lea rcx, [rsp + 0x48]
mov edx, r13d
call fcn.14006c710
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], esi
mov rdx, rax
call fcn.1400633dc
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
cmp rax, rsi
je 0x14009f28f
cmp rcx, rsi
jle 0x14009f2e8
mov edx, 1
cmp byte [rsp + 0x70], sil
jne 0x14009f213
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.1400633dc
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov edx, 1
jmp 0x14009f213
cmp byte [rsp + 0x148], 2
jne 0x14009f2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r12d
jne 0x14009f2e0
mov edi, r12d
jmp 0x14009f2e8
cmp dword [rsp + 0x58], esi
cmovne edi, r14d
mov r13d, 0x4b0
lea rcx, [rsp + 0x48]
call fcn.14005aef8
cmp byte [0x14013ccb1], sil
je 0x14009f31a
lea rdx, str.DBG__d:_r_n
lea rcx, [0x14013d130]
mov r8d, 0x55b0
call fcn.140018dd8
lea rcx, [rsp + 0x50]
mov edx, r13d
call fcn.14006c710
mov r15, rax
cmp rbx, rsi
je 0x14009f33e
cmp rbx, 0xffffffffffffffff
je 0x14009f33e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x88]
call fcn.14005aef8
lea rcx, [rsp + 0xc0]
call fcn.14005aef8
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x130]
mov r8, r15
call fcn.140062600
movsxd rsi, edi
lea rcx, [rsp + 0x50]
call fcn.14005aef8
lea rcx, [rsp + 0xd8]
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.14005aef8
lea rcx, [rsp + 0xb0]
call fcn.14005aef8
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