Function at 0x140087eb4
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, 0xe0
xor esi, esi
mov r11, rdx
mov edi, 0x4b0
lea edx, [rsi + 9]
mov bl, sil
mov ebp, 0xffff0000
mov r14b, sil
mov byte [rsp + 0x40], sil
mov dword [rsp + 0x78], esi
mov byte [rsp + 0x138], bl
mov qword [rsp + 0x58], rbp
lea ecx, [rsi + 0xd]
lea r12d, [rsi + 1]
lea r15d, [rdi + 1]
lea r13d, [rsi + 4]
lea r8d, [rsi + 0x20]
cmp dx, word [r11]
ja 0x140087f21
cmp word [r11], cx
jbe 0x140087f27
cmp r8w, word [r11]
jne 0x140087f38
mov ebp, esi
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x58], rbp
jmp 0x1400880b4
lea rcx, str._UNI
mov r8d, r13d
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x140087f5b
mov ebp, edi
mov qword [rsp + 0x58], rbp
jmp 0x140088087
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.140051904
cmp al, sil
jne 0x140087f4f
mov edi, 5
lea rcx, str._UNIB
mov rdx, r11
mov r8d, edi
call fcn.140051904
cmp al, sil
je 0x140087f96
mov ebp, r15d
jmp 0x140087f51
lea rcx, str._UNICODEB
mov r8d, 9
mov rdx, r11
call fcn.140051904
cmp al, sil
jne 0x140087f91
lea rcx, str._ANSI
mov r8d, edi
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x140087fcb
mov ebp, esi
jmp 0x140087f51
lea rcx, str._GBK
mov r8d, r13d
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x140087fec
mov ebp, 0x3a8
jmp 0x140087f51
lea rcx, str._BIG5
mov r8d, edi
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x14008800d
mov ebp, 0x3b6
jmp 0x140087f51
lea rcx, str._UTF8
mov r8d, edi
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x14008802e
mov ebp, 0xfde9
jmp 0x140087f51
lea rcx, str._UTF7
mov r8d, edi
mov rdx, r11
call fcn.140051904
cmp al, sil
je 0x14008804f
mov ebp, 0xfde8
jmp 0x140087f51
mov eax, 0x2d
cmp ax, word [r11]
jne 0x140088087
lea rcx, [r11 + 2]
mov edx, 9
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, dx
ja 0x14008808c
mov r11, rcx
mov qword [rsp + 0x128], rcx
call fcn.1400593f4
mov rbp, rax
mov qword [rsp + 0x58], rax
mov edx, 9
mov r8d, 0x20
lea ecx, [r8 - 0x13]
jmp 0x1400880b4
cmp dx, ax
ja 0x1400880a2
cmp ax, cx
jbe 0x1400880bd
cmp r8w, ax
je 0x1400880bd
add r11, 2
mov qword [rsp + 0x128], r11
movzx eax, word [r11]
cmp ax, si
jne 0x140088098
lea rcx, [rsp + 0x128]
call fcn.14005044c
lea rdx, [rsp + 0x128]
lea rcx, str.fix
mov r8d, r13d
call fcn.14005a964
lea rdx, [0x1400f04f4]
lea rcx, [rsp + 0x98]
neg al
sbb r15b, r15b
and r15b, 2
call fcn.140062680
lea rdx, str.READLINE
lea rcx, [rsp + 0x60]
call fcn.140062680
mov rdi, qword [rsp + 0x120]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x128]
mov rcx, rdi
mov r9d, 0x2c
mov r13, r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], rsi
mov word [rsp + 0x20], si
call fcn.140049d84
mov r9, qword [rsp + 0x98]
lea rcx, [0x1400fb68c]
mov rdx, r9
mov qword [rsp + 0x128], rax
call fcn.14005199c
cmp al, sil
je 0x14008825a
mov qword [rsp + 0x90], r12
mov bl, r12b
mov byte [rsp + 0x138], bl
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xb8], rsi
call fcn.14005818c
mov rdx, qword [rsp + 0x128]
lea r8, [rsp + 0xc0]
xor r9d, r9d
mov rcx, rdi
mov byte [rsp + 0x20], r12b
call fcn.14006a800
mov r11, qword [rsp + 0xc0]
mov eax, 0x2c
mov qword [rsp + 0x128], r11
cmp word [r11], ax
jne 0x140088385
lea rcx, [rsp + 0x48]
call fcn.14005818c
add qword [rsp + 0x128], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x128]
mov r8d, 0x2c
call fcn.14005bab0
mov r11, qword [rsp + 0x48]
lea rcx, [0x1400fb688]
mov rdx, r11
mov qword [rsp + 0x80], r11
call fcn.14005199c
cmp al, sil
je 0x14008829b
lea rdi, [0x1400fb684]
mov r14b, 2
mov qword [rsp + 0xb8], rdi
mov rdi, qword [rsp + 0x120]
mov byte [rsp + 0x40], r14b
jmp 0x140088347
cmp word [r9], si
je 0x14008818c
lea rcx, [0x1400f1860]
mov rdx, r9
call fcn.14005199c
cmp al, sil
jne 0x14008818c
lea rcx, [0x1400f1014]
mov rdx, r9
call fcn.14005199c
cmp al, sil
je 0x140088196
mov bl, 2
jmp 0x14008818f
lea rcx, [0x1400fb680]
mov rdx, r11
call fcn.14005199c
cmp al, sil
je 0x1400882bc
mov r14b, 3
mov byte [rsp + 0x40], r14b
jmp 0x140088347
lea rcx, [0x1400f64a4]
mov rdx, r11
call fcn.14005199c
cmp al, sil
je 0x1400882e9
lea rax, [0x1400fb67c]
mov r14b, r12b
mov byte [rsp + 0x40], r12b
mov qword [rsp + 0xb8], rax
jmp 0x140088347
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140066408
mov rax, qword [rsp + 0x80]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x14008833d
add rax, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
call fcn.140066408
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov r13, qword [rsp + 0x68]
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x48]
call fcn.14005041c
mov r11, qword [rsp + 0x128]
mov eax, 0x2c
cmp word [r11], ax
jne 0x140088385
add r11, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x128]
mov r8d, eax
mov qword [rsp + 0x128], r11
call fcn.14005bab0
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, rdi
call fcn.140003700
lea rcx, [rsp + 0x48]
mov edx, 8
call fcn.140057f14
cmp ebp, esi
mov rdi, qword [rsp + 0x48]
mov word [rdi], si
jl 0x140089086
lea rcx, [rsp + 0xa0]
call fcn.140057eb0
mov rax, qword [rsp + 0x98]
mov ecx, 0x75
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
cmp cx, word [rax]
jne 0x14008862b
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x14008862b
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x14008862b
add rax, 6
lea r9d, [rcx - 0x42]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x128]
mov word [rax], si
mov r10, qword [rsp + 0x138]
cmp r9w, word [r10]
jne 0x140088438
add r10, 2
mov qword [rsp + 0x138], r10
lea rcx, [rsp + 0x138]
call fcn.1400cfd44
mov rcx, qword [rsp + 0x138]
cmp rcx, r10
je 0x140088465
cmp word [rcx - 2], r9w
jne 0x140088465
mov word [rcx - 2], si
mov rcx, qword [rsp + 0x138]
cmp dx, word [rcx]
jne 0x140088481
mov word [rcx], si
mov rcx, qword [rsp + 0x138]
add rcx, 2
mov qword [rsp + 0x138], rcx
mov r8, rcx
cmp r9w, word [rcx]
jne 0x1400884b0
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x138], rcx
cmp r9w, word [rcx]
jne 0x1400884ab
mov word [rcx], si
mov rcx, qword [rsp + 0x138]
cmp word [rcx], si
jne 0x14008848e
lea rdx, [rsp + 0xa0]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rsi
call fcn.14004a95c
mov rbx, qword [rsp + 0xa8]
cmp ebx, esi
mov r11, qword [rsp + 0xa0]
jle 0x1400884f5
mov rax, qword [rsp + 0xb0]
lea r8, [r11 + rax]
mov qword [rsp + 0x128], r8
jmp 0x1400884fd
mov r8, qword [rsp + 0x128]
movsx edx, byte [r8]
mov rcx, rsi
cmp edx, 0xff
jne 0x14008851f
movsx eax, byte [r8 + 1]
cmp eax, 0xfe
jne 0x14008851f
mov ebp, 0x4b0
jmp 0x140088538
cmp edx, 0xfe
jne 0x14008853f
movsx eax, byte [r8 + 1]
cmp eax, 0xff
jne 0x14008853f
mov ebp, 0x4b1
mov ecx, 2
jmp 0x140088569
cmp edx, 0xef
jne 0x140088569
movsx eax, byte [r8 + 1]
cmp eax, 0xbb
jne 0x140088569
movsx eax, byte [r8 + 2]
cmp eax, 0xbf
jne 0x140088569
mov ebp, 0xfde9
mov ecx, 3
sub ebx, ecx
lea rdi, [rcx + r8]
cmp ebp, 0x4b1
jne 0x14008859f
movsxd rdx, ebx
and rdx, 0xfffffffffffffffe
add rdx, rdi
cmp rdi, rdx
ja 0x1400886af
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 0x14008858a
jmp 0x14008861e
cmp ebp, 0x4b0
je 0x1400886af
cmp dword [rsp + 0x78], esi
je 0x1400885c6
movsxd rdx, ebx
mov rcx, rdi
call fcn.140069dc4
mov r11, qword [rsp + 0xa0]
mov ebp, eax
movsxd rbx, ebx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xb8], r11
lea rdx, [rbx + rbx + 0x20]
mov qword [rsp + 0xa0], rsi
call fcn.140057f90
lea rcx, [rsp + 0xa0]
movsxd r9, ebp
mov r8, rbx
mov rdx, rdi
call fcn.140058348
mov r11, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x128], r11
call fcn.14005041c
mov r8, qword [rsp + 0x128]
jmp 0x1400886af
mov rax, qword [rsp + 0x60]
cmp word [rax], si
jne 0x140088677
lea rcx, [rsp + 0xa0]
call fcn.14005041c
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0xc0]
call fcn.14005041c
lea rcx, [rsp + 0x60]
call fcn.14005041c
lea rcx, [rsp + 0x98]
call fcn.14005041c
xor eax, eax
jmp 0x1400890cf
mov r8, qword [rsp + 0x128]
cmp bl, r12b
jne 0x14008869a
mov eax, 0x2c
cmp word [r8], ax
je 0x14008869a
mov r12d, 0x80070057
jmp 0x140089079
add r8, 2
mov qword [rsp + 0x128], r8
test r12b, bl
je 0x140088a53
mov qword [rsp + 0x70], rsi
cmp qword [rsp + 0x90], rsi
je 0x14008876d
lea rcx, [rsp + 0x128]
call fcn.14005044c
mov r8, qword [rsp + 0x128]
mov edi, 0xd
movzx eax, word [r8]
mov rdx, r8
lea ebp, [rdi + 0x13]
cmp ax, si
je 0x140088726
lea ecx, [rdi - 4]
cmp cx, ax
ja 0x1400886f8
cmp ax, di
jbe 0x140088714
cmp bp, ax
je 0x140088714
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
je 0x140088726
jmp 0x1400886ee
cmp word [r8], si
je 0x140088726
mov word [r8], si
mov r8, qword [rsp + 0x128]
mov r15, qword [rsp + 0x120]
cmp word [rdx], si
je 0x14008877d
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r15
call fcn.14001b570
cmp rax, rsi
je 0x140088763
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140062798
mov r8, qword [rsp + 0x70]
mov qword [rsp + 0x128], r8
jmp 0x14008877d
mov r8, qword [rsp + 0x128]
jmp 0x14008877d
mov r15, qword [rsp + 0x120]
mov edi, 0xd
lea ebp, [rdi + 0x13]
mov r9, r8
cmp r14b, 3
jne 0x140088798
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140057738
jmp 0x140088a44
cmp r14b, sil
je 0x140088885
lea rax, [0x1400f4240]
lea rdi, [0x1400f3b00]
lea rcx, [rsp + 0x138]
cmp r14b, r12b
cmove rdi, rax
call fcn.14005818c
mov r11, qword [rsp + 0x128]
movzx eax, word [r11]
mov rbp, r11
cmp ax, si
je 0x140088851
mov ebx, 0xa
lea ecx, [rbx + 3]
cmp ax, cx
jne 0x1400887fa
cmp word [r11 + 2], bx
jne 0x1400887ff
mov word [r11], si
add qword [rsp + 0x128], 2
jmp 0x140088803
cmp ax, bx
jne 0x14008883c
mov word [r11], si
cmp r14b, sil
jne 0x140088818
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.1400582c8
lea rcx, [rsp + 0x138]
mov rdx, rbp
mov r14b, sil
call fcn.1400582c8
mov r11, qword [rsp + 0x128]
mov ecx, 0xd
lea rbp, [r11 + 2]
add r11, 2
mov qword [rsp + 0x128], r11
mov ax, word [r11]
cmp ax, si
jne 0x1400887df
cmp word [rbp], si
je 0x140088a22
cmp r14b, sil
jne 0x140088870
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.1400582c8
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.1400582c8
jmp 0x140088a22
cmp r13, rsi
jge 0x1400888f4
movzx eax, word [r8]
mov rdi, rsi
cmp ax, si
je 0x1400888c7
mov ebx, 0xa
cmp ax, bx
jne 0x1400888a3
add rdi, r12
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x14008889b
cmp r8, r9
jbe 0x1400888c7
cmp word [r8 - 2], bx
je 0x1400888c7
add rdi, r12
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.140058200
mov rcx, qword [rsp + 0x138]
lea rdx, [0x1400f0cbc]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140088a22
mov ebx, 0xa
jne 0x14008898d
movzx eax, word [r8]
mov rcx, r8
mov rdx, r8
cmp ax, si
je 0x14008895b
cmp ax, bx
jne 0x140088919
mov rdx, rcx
mov rcx, r8
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x14008890e
cmp r8, r9
jbe 0x14008894b
cmp word [r8 - 2], bx
je 0x14008894b
cmp word [rcx], bx
jne 0x140088943
add rcx, 2
mov r8, rcx
jmp 0x140088786
cmp rcx, r9
jbe 0x14008895b
lea rax, [rcx - 2]
cmp word [rax], di
cmove rcx, rax
cmp word [rdx], bx
jne 0x140088964
add rdx, 2
sub rcx, rdx
sar rcx, 1
mov r8, rcx
jmp 0x140088a15
cmp word [r8], si
je 0x140088992
cmp word [r8], bx
jne 0x140088981
sub r13, r12
add r8, 2
mov qword [rsp + 0x128], r8
cmp r13, r12
jg 0x140088972
movzx eax, word [r8]
mov r9, qword [rsp + 0x50]
mov rdx, r8
mov rcx, r9
cmp ax, si
je 0x140088a0f
mov r10d, 0xd
cmp rcx, rsi
je 0x1400889d3
sub r9, r12
js 0x140088a0f
jmp 0x1400889d3
cmp ax, r10w
je 0x1400889d8
cmp ax, bx
je 0x1400889d8
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400889b8
cmp rcx, rsi
je 0x1400889e2
cmp r9, rsi
je 0x140088a0f
cmp r10w, word [r8]
jne 0x1400889f4
add r8, 2
mov qword [rsp + 0x128], r8
cmp bx, word [r8]
jne 0x140088a06
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400889ac
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x138]
call fcn.1400626a4
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140057738
lea rcx, [rsp + 0x138]
call fcn.14005041c
lea rcx, [rsp + 0x70]
call fcn.14005041c
jmp 0x140088635
lea rcx, [rsp + 0x80]
mov edx, 8
call fcn.140057f14
xor eax, eax
mov word [rdi], si
mov qword [rsp + 0xd8], rax
mov rax, qword [0x14010b2d0]
lea r14, [rsp + 0xd0]
mov qword [rsp + 0xd0], rax
mov al, byte [rsp + 0x138]
lea rcx, [rsp + 0x68]
cmp al, 2
mov rbx, rsi
cmovne r14, rcx
mov qword [rsp + 0x68], rbx
cmp al, 2
je 0x140088c5b
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x2000000
lea rcx, [rsp + 0x68]
mov r9d, 7
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rsi
call fcn.140003568
cmp qword [r14], rsi
jne 0x140088b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov r12d, eax
cmp rcx, rsi
je 0x14008906c
cmp rcx, 0xffffffffffffffff
je 0x14008906c
jmp 0x140089066
mov rcx, qword [r14]
xor eax, eax
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
lea r8d, [rax + 3]
mov byte [rsp + 0x88], sil
mov byte [rsp + 0x89], sil
mov byte [rsp + 0x8a], sil
mov word [rsp + 0x8b], ax
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11b, byte [rsp + 0x88]
cmp r11b, 0xff
jne 0x140088b7e
cmp byte [rsp + 0x89], 0xfe
jne 0x140088bc2
mov ebp, 0x4b0
mov ebx, 2
jmp 0x140088bb9
cmp r11b, 0xfe
jne 0x140088b95
cmp byte [rsp + 0x89], 0xff
jne 0x140088bc2
mov ebp, 0x4b1
jmp 0x140088b77
cmp r11b, 0xef
jne 0x140088bc2
cmp byte [rsp + 0x89], 0xbb
jne 0x140088bc2
cmp byte [rsp + 0x8a], 0xbf
jne 0x140088bc2
mov ebp, 0xfde9
mov ebx, 3
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x78], esi
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rbx
call fcn.14005184c
cmp rax, rsi
mov qword [rsp + 0xc8], rax
jl 0x140088ae8
cmp dword [rsp + 0x78], esi
je 0x140088c56
mov rcx, qword [r14]
call fcn.1400c3794
cmp rax, 0x1000000
mov rbx, rax
jg 0x140088c56
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.140057f90
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [r14]
lea r9, [rsp + 0x90]
mov r8d, ebx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [r14]
xor r8d, r8d
call fcn.14005184c
mov rcx, qword [rsp + 0xa0]
mov rdx, rbx
call fcn.140069dc4
mov ebp, eax
mov qword [rsp + 0x58], rbp
mov rbx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rsp + 0x40]
cmp al, 3
jne 0x140088d7e
mov r14, qword [r14]
mov bpl, byte [rsp + 0x138]
mov qword [rsp + 0x50], rsi
mov r13d, esi
mov r15, rsi
mov ebx, 0x186a0
lea edx, [r13 + 0x40001]
lea rcx, [rsp + 0x50]
call fcn.140057f90
mov rdi, qword [rsp + 0x50]
lea r9, [rsp + 0x138]
lea rdx, [rdi + r15]
mov r15d, 0x40000
mov rcx, r14
mov r8d, r15d
mov qword [rsp + 0x138], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x138]
cmp rcx, r15
cmovg rcx, r15
mov qword [rsp + 0x138], rcx
cmp rcx, rsi
jne 0x140088d09
cmp eax, esi
jne 0x140088d18
cmp bpl, 2
jne 0x140088d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088d18
mov rcx, qword [rsp + 0x138]
sub rbx, r12
js 0x140088d18
add r13d, ecx
movsxd r15, r13d
mov byte [rdi + r15], sil
jmp 0x140088c8a
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14005fcb8
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rax
call fcn.140057738
lea rcx, [rsp + 0x50]
call fcn.14005041c
mov rbx, qword [rsp + 0x68]
cmp rbx, rsi
je 0x140088d5f
cmp rbx, 0xffffffffffffffff
je 0x140088d5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14005041c
lea rcx, [rsp + 0xa0]
call fcn.14005041c
jmp 0x14008909e
cmp al, sil
je 0x140088e4d
mov rax, qword [rsp + 0xb8]
lea rdx, [0x1400f0ea0]
lea rcx, [rsp + 0x90]
cmp rax, rsi
cmovne rdx, rax
or r8, 0xffffffffffffffff
call fcn.1400626c0
or r15b, r12b
lea rcx, [rsp + 0x50]
call fcn.14005818c
cmp byte [rsp + 0x40], sil
jne 0x140088dd4
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.1400582c8
lea rdx, [rsp + 0x50]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
mov byte [rsp + 0x40], sil
call fcn.14005f888
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x140088e03
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088e2c
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.14005fcb8
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.1400582c8
lea rcx, [rsp + 0x50]
call fcn.14005041c
cmp edi, esi
je 0x140088e36
jmp 0x140088db1
lea rcx, [rsp + 0x50]
call fcn.14005041c
lea rcx, [rsp + 0x90]
mov ebp, 0x4b0
call fcn.14005041c
jmp 0x140089046
cmp r13, rsi
jge 0x140088eba
mov bl, byte [rsp + 0x138]
mov rdi, rsi
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005f888
mov r13d, eax
cmp bl, 2
jne 0x140088e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088e8c
cmp r13d, esi
je 0x140088e8c
add rdi, r12
jmp 0x140088e5c
lea rcx, [rsp + 0x48]
mov edx, 0x20
mov ebp, 0x4b0
call fcn.140057f90
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1400f0cbc]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140089041
jne 0x140088f13
or r15b, r12b
mov rax, rdi
mov rdi, qword [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x80], rax
call fcn.14005f888
cmp byte [rsp + 0x138], 2
mov r12d, eax
jne 0x140088f09
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140089046
cmp r12d, esi
jne 0x140088ebf
jmp 0x140089046
cmp r12, qword [rsp + 0x70]
mov r13, r12
jge 0x140088f62
mov rbx, qword [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005f888
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x140088f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088f58
cmp edi, esi
je 0x140088f58
add r13, r12
cmp r13, rbx
jl 0x140088f22
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
mov byte [rdi], sil
cmp qword [rsp + 0x50], r12
jne 0x140088f87
or r15b, r12b
lea rdx, [rsp + 0x48]
mov r8d, ebp
mov r9b, r15b
mov rcx, r14
call fcn.14005f888
jmp 0x140089046
lea rcx, [rsp + 0x70]
call fcn.14005818c
mov rax, qword [rsp + 0x50]
mov bl, byte [rsp + 0x138]
movsxd r13, eax
lea rdi, [0x1400f3b00]
cmp r13, rsi
je 0x140088fb6
sub rax, r12
mov qword [rsp + 0x50], rax
js 0x140089032
mov rax, qword [rsp + 0x70]
mov r9b, r15b
lea rdx, [rsp + 0x70]
or r9b, r12b
mov r8d, ebp
mov rcx, r14
mov word [rax], si
call fcn.14005f888
mov dword [rsp + 0x138], eax
cmp bl, 2
jne 0x140088ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140089032
mov eax, dword [rsp + 0x138]
cmp eax, esi
je 0x140089032
lea rcx, [rsp + 0x70]
mov edx, ebp
call fcn.14005fcb8
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.1400582c8
cmp r13, rsi
je 0x14008901b
cmp qword [rsp + 0x50], rsi
jle 0x140089032
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1400582c8
mov rax, qword [rsp + 0x50]
jmp 0x140088fa7
lea rcx, [rsp + 0x70]
mov ebp, 0x4b0
call fcn.14005041c
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov edx, ebp
call fcn.14005fcb8
mov r12d, esi
mov rdi, rax
cmp rbx, rsi
je 0x14008906c
cmp rbx, 0xffffffffffffffff
je 0x14008906c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14005041c
lea rcx, [rsp + 0xa0]
call fcn.14005041c
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rdi
call fcn.140057738
movsxd rsi, r12d
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0xc0]
call fcn.14005041c
lea rcx, [rsp + 0x60]
call fcn.14005041c
lea rcx, [rsp + 0x98]
call fcn.14005041c
mov rax, rsi
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret