Function at 0x140087ad0
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 0x140087b3d
cmp word [r11], cx
jbe 0x140087b43
cmp r8w, word [r11]
jne 0x140087b54
mov ebp, esi
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x58], rbp
jmp 0x140087cd0
lea rcx, str._UNI
mov r8d, r13d
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087b77
mov ebp, edi
mov qword [rsp + 0x58], rbp
jmp 0x140087ca3
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.1400518dc
cmp al, sil
jne 0x140087b6b
mov edi, 5
lea rcx, str._UNIB
mov rdx, r11
mov r8d, edi
call fcn.1400518dc
cmp al, sil
je 0x140087bb2
mov ebp, r15d
jmp 0x140087b6d
lea rcx, str._UNICODEB
mov r8d, 9
mov rdx, r11
call fcn.1400518dc
cmp al, sil
jne 0x140087bad
lea rcx, str._ANSI
mov r8d, edi
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087be7
mov ebp, esi
jmp 0x140087b6d
lea rcx, str._GBK
mov r8d, r13d
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087c08
mov ebp, 0x3a8
jmp 0x140087b6d
lea rcx, str._BIG5
mov r8d, edi
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087c29
mov ebp, 0x3b6
jmp 0x140087b6d
lea rcx, str._UTF8
mov r8d, edi
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087c4a
mov ebp, 0xfde9
jmp 0x140087b6d
lea rcx, str._UTF7
mov r8d, edi
mov rdx, r11
call fcn.1400518dc
cmp al, sil
je 0x140087c6b
mov ebp, 0xfde8
jmp 0x140087b6d
mov eax, 0x2d
cmp ax, word [r11]
jne 0x140087ca3
lea rcx, [r11 + 2]
mov edx, 9
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, dx
ja 0x140087ca8
mov r11, rcx
mov qword [rsp + 0x128], rcx
call fcn.1400592a0
mov rbp, rax
mov qword [rsp + 0x58], rax
mov edx, 9
mov r8d, 0x20
lea ecx, [r8 - 0x13]
jmp 0x140087cd0
cmp dx, ax
ja 0x140087cbe
cmp ax, cx
jbe 0x140087cd9
cmp r8w, ax
je 0x140087cd9
add r11, 2
mov qword [rsp + 0x128], r11
movzx eax, word [r11]
cmp ax, si
jne 0x140087cb4
lea rcx, [rsp + 0x128]
call fcn.1400503f4
lea rdx, [rsp + 0x128]
lea rcx, str.fix
mov r8d, r13d
call fcn.14005a810
lea rdx, [0x1400f04f4]
lea rcx, [rsp + 0x98]
neg al
sbb r15b, r15b
and r15b, 2
call fcn.14006252c
lea rdx, str.READLINE
lea rcx, [rsp + 0x60]
call fcn.14006252c
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.140049d5c
mov r9, qword [rsp + 0x98]
lea rcx, [0x1400fb6bc]
mov rdx, r9
mov qword [rsp + 0x128], rax
call fcn.140051974
cmp al, sil
je 0x140087e76
mov qword [rsp + 0x90], r12
mov bl, r12b
mov byte [rsp + 0x138], bl
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xb8], rsi
call fcn.140058038
mov rdx, qword [rsp + 0x128]
lea r8, [rsp + 0xc0]
xor r9d, r9d
mov rcx, rdi
mov byte [rsp + 0x20], r12b
call fcn.14006a438
mov r11, qword [rsp + 0xc0]
mov eax, 0x2c
mov qword [rsp + 0x128], r11
cmp word [r11], ax
jne 0x140087fa1
lea rcx, [rsp + 0x48]
call fcn.140058038
add qword [rsp + 0x128], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x128]
mov r8d, 0x2c
call fcn.14005b95c
mov r11, qword [rsp + 0x48]
lea rcx, [0x1400fb6b8]
mov rdx, r11
mov qword [rsp + 0x80], r11
call fcn.140051974
cmp al, sil
je 0x140087eb7
lea rdi, [0x1400fb6b4]
mov r14b, 2
mov qword [rsp + 0xb8], rdi
mov rdi, qword [rsp + 0x120]
mov byte [rsp + 0x40], r14b
jmp 0x140087f63
cmp word [r9], si
je 0x140087da8
lea rcx, [0x1400f1850]
mov rdx, r9
call fcn.140051974
cmp al, sil
jne 0x140087da8
lea rcx, [0x1400f100c]
mov rdx, r9
call fcn.140051974
cmp al, sil
je 0x140087db2
mov bl, 2
jmp 0x140087dab
lea rcx, [0x1400fb6b0]
mov rdx, r11
call fcn.140051974
cmp al, sil
je 0x140087ed8
mov r14b, 3
mov byte [rsp + 0x40], r14b
jmp 0x140087f63
lea rcx, [0x1400f6494]
mov rdx, r11
call fcn.140051974
cmp al, sil
je 0x140087f05
lea rax, [0x1400fb6ac]
mov r14b, r12b
mov byte [rsp + 0x40], r12b
mov qword [rsp + 0xb8], rax
jmp 0x140087f63
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.1400662b4
mov rax, qword [rsp + 0x80]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x140087f59
add rax, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
call fcn.1400662b4
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.140050424
mov r11, qword [rsp + 0x128]
mov eax, 0x2c
cmp word [r11], ax
jne 0x140087fa1
add r11, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x128]
mov r8d, eax
mov qword [rsp + 0x128], r11
call fcn.14005b95c
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, rdi
call fcn.140003720
lea rcx, [rsp + 0x48]
mov edx, 8
call fcn.140057dc0
cmp ebp, esi
mov rdi, qword [rsp + 0x48]
mov word [rdi], si
jl 0x140088ca2
lea rcx, [rsp + 0xa0]
call fcn.140057d5c
mov rax, qword [rsp + 0x98]
mov ecx, 0x75
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
cmp cx, word [rax]
jne 0x140088247
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x140088247
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x140088247
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 0x140088054
add r10, 2
mov qword [rsp + 0x138], r10
lea rcx, [rsp + 0x138]
call fcn.140009210
mov rcx, qword [rsp + 0x138]
cmp rcx, r10
je 0x140088081
cmp word [rcx - 2], r9w
jne 0x140088081
mov word [rcx - 2], si
mov rcx, qword [rsp + 0x138]
cmp dx, word [rcx]
jne 0x14008809d
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 0x1400880cc
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x138], rcx
cmp r9w, word [rcx]
jne 0x1400880c7
mov word [rcx], si
mov rcx, qword [rsp + 0x138]
cmp word [rcx], si
jne 0x1400880aa
lea rdx, [rsp + 0xa0]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rsi
call fcn.14004a934
mov rbx, qword [rsp + 0xa8]
cmp ebx, esi
mov r11, qword [rsp + 0xa0]
jle 0x140088111
mov rax, qword [rsp + 0xb0]
lea r8, [r11 + rax]
mov qword [rsp + 0x128], r8
jmp 0x140088119
mov r8, qword [rsp + 0x128]
movsx edx, byte [r8]
mov rcx, rsi
cmp edx, 0xff
jne 0x14008813b
movsx eax, byte [r8 + 1]
cmp eax, 0xfe
jne 0x14008813b
mov ebp, 0x4b0
jmp 0x140088154
cmp edx, 0xfe
jne 0x14008815b
movsx eax, byte [r8 + 1]
cmp eax, 0xff
jne 0x14008815b
mov ebp, 0x4b1
mov ecx, 2
jmp 0x140088185
cmp edx, 0xef
jne 0x140088185
movsx eax, byte [r8 + 1]
cmp eax, 0xbb
jne 0x140088185
movsx eax, byte [r8 + 2]
cmp eax, 0xbf
jne 0x140088185
mov ebp, 0xfde9
mov ecx, 3
sub ebx, ecx
lea rdi, [rcx + r8]
cmp ebp, 0x4b1
jne 0x1400881bb
movsxd rdx, ebx
and rdx, 0xfffffffffffffffe
add rdx, rdi
cmp rdi, rdx
ja 0x1400882cb
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 0x1400881a6
jmp 0x14008823a
cmp ebp, 0x4b0
je 0x1400882cb
cmp dword [rsp + 0x78], esi
je 0x1400881e2
movsxd rdx, ebx
mov rcx, rdi
call fcn.1400699fc
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.140057e3c
lea rcx, [rsp + 0xa0]
movsxd r9, ebp
mov r8, rbx
mov rdx, rdi
call fcn.1400581f4
mov r11, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x128], r11
call fcn.140050424
mov r8, qword [rsp + 0x128]
jmp 0x1400882cb
mov rax, qword [rsp + 0x60]
cmp word [rax], si
jne 0x140088293
lea rcx, [rsp + 0xa0]
call fcn.140050424
lea rcx, [rsp + 0x48]
call fcn.140050424
lea rcx, [rsp + 0xc0]
call fcn.140050424
lea rcx, [rsp + 0x60]
call fcn.140050424
lea rcx, [rsp + 0x98]
call fcn.140050424
xor eax, eax
jmp 0x140088ceb
mov r8, qword [rsp + 0x128]
cmp bl, r12b
jne 0x1400882b6
mov eax, 0x2c
cmp word [r8], ax
je 0x1400882b6
mov r12d, 0x80070057
jmp 0x140088c95
add r8, 2
mov qword [rsp + 0x128], r8
test r12b, bl
je 0x14008866f
mov qword [rsp + 0x70], rsi
cmp qword [rsp + 0x90], rsi
je 0x140088389
lea rcx, [rsp + 0x128]
call fcn.1400503f4
mov r8, qword [rsp + 0x128]
mov edi, 0xd
movzx eax, word [r8]
mov rdx, r8
lea ebp, [rdi + 0x13]
cmp ax, si
je 0x140088342
lea ecx, [rdi - 4]
cmp cx, ax
ja 0x140088314
cmp ax, di
jbe 0x140088330
cmp bp, ax
je 0x140088330
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
je 0x140088342
jmp 0x14008830a
cmp word [r8], si
je 0x140088342
mov word [r8], si
mov r8, qword [rsp + 0x128]
mov r15, qword [rsp + 0x120]
cmp word [rdx], si
je 0x140088399
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r15
call fcn.14001b59c
cmp rax, rsi
je 0x14008837f
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140062644
mov r8, qword [rsp + 0x70]
mov qword [rsp + 0x128], r8
jmp 0x140088399
mov r8, qword [rsp + 0x128]
jmp 0x140088399
mov r15, qword [rsp + 0x120]
mov edi, 0xd
lea ebp, [rdi + 0x13]
mov r9, r8
cmp r14b, 3
jne 0x1400883b4
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140057714
jmp 0x140088660
cmp r14b, sil
je 0x1400884a1
lea rax, [0x1400f4230]
lea rdi, [0x1400f3af0]
lea rcx, [rsp + 0x138]
cmp r14b, r12b
cmove rdi, rax
call fcn.140058038
mov r11, qword [rsp + 0x128]
movzx eax, word [r11]
mov rbp, r11
cmp ax, si
je 0x14008846d
mov ebx, 0xa
lea ecx, [rbx + 3]
cmp ax, cx
jne 0x140088416
cmp word [r11 + 2], bx
jne 0x14008841b
mov word [r11], si
add qword [rsp + 0x128], 2
jmp 0x14008841f
cmp ax, bx
jne 0x140088458
mov word [r11], si
cmp r14b, sil
jne 0x140088434
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.140058174
lea rcx, [rsp + 0x138]
mov rdx, rbp
mov r14b, sil
call fcn.140058174
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 0x1400883fb
cmp word [rbp], si
je 0x14008863e
cmp r14b, sil
jne 0x14008848c
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.140058174
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.140058174
jmp 0x14008863e
cmp r13, rsi
jge 0x140088510
movzx eax, word [r8]
mov rdi, rsi
cmp ax, si
je 0x1400884e3
mov ebx, 0xa
cmp ax, bx
jne 0x1400884bf
add rdi, r12
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400884b7
cmp r8, r9
jbe 0x1400884e3
cmp word [r8 - 2], bx
je 0x1400884e3
add rdi, r12
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.1400580ac
mov rcx, qword [rsp + 0x138]
lea rdx, [0x1400f0cb8]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14008863e
mov ebx, 0xa
jne 0x1400885a9
movzx eax, word [r8]
mov rcx, r8
mov rdx, r8
cmp ax, si
je 0x140088577
cmp ax, bx
jne 0x140088535
mov rdx, rcx
mov rcx, r8
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x14008852a
cmp r8, r9
jbe 0x140088567
cmp word [r8 - 2], bx
je 0x140088567
cmp word [rcx], bx
jne 0x14008855f
add rcx, 2
mov r8, rcx
jmp 0x1400883a2
cmp rcx, r9
jbe 0x140088577
lea rax, [rcx - 2]
cmp word [rax], di
cmove rcx, rax
cmp word [rdx], bx
jne 0x140088580
add rdx, 2
sub rcx, rdx
sar rcx, 1
mov r8, rcx
jmp 0x140088631
cmp word [r8], si
je 0x1400885ae
cmp word [r8], bx
jne 0x14008859d
sub r13, r12
add r8, 2
mov qword [rsp + 0x128], r8
cmp r13, r12
jg 0x14008858e
movzx eax, word [r8]
mov r9, qword [rsp + 0x50]
mov rdx, r8
mov rcx, r9
cmp ax, si
je 0x14008862b
mov r10d, 0xd
cmp rcx, rsi
je 0x1400885ef
sub r9, r12
js 0x14008862b
jmp 0x1400885ef
cmp ax, r10w
je 0x1400885f4
cmp ax, bx
je 0x1400885f4
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400885d4
cmp rcx, rsi
je 0x1400885fe
cmp r9, rsi
je 0x14008862b
cmp r10w, word [r8]
jne 0x140088610
add r8, 2
mov qword [rsp + 0x128], r8
cmp bx, word [r8]
jne 0x140088622
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400885c8
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x138]
call fcn.140062550
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140057714
lea rcx, [rsp + 0x138]
call fcn.140050424
lea rcx, [rsp + 0x70]
call fcn.140050424
jmp 0x140088251
lea rcx, [rsp + 0x80]
mov edx, 8
call fcn.140057dc0
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 0x140088877
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.140003588
cmp qword [r14], rsi
jne 0x14008872a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov r12d, eax
cmp rcx, rsi
je 0x140088c88
cmp rcx, 0xffffffffffffffff
je 0x140088c88
jmp 0x140088c82
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 0x14008879a
cmp byte [rsp + 0x89], 0xfe
jne 0x1400887de
mov ebp, 0x4b0
mov ebx, 2
jmp 0x1400887d5
cmp r11b, 0xfe
jne 0x1400887b1
cmp byte [rsp + 0x89], 0xff
jne 0x1400887de
mov ebp, 0x4b1
jmp 0x140088793
cmp r11b, 0xef
jne 0x1400887de
cmp byte [rsp + 0x89], 0xbb
jne 0x1400887de
cmp byte [rsp + 0x8a], 0xbf
jne 0x1400887de
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.140051824
cmp rax, rsi
mov qword [rsp + 0xc8], rax
jl 0x140088704
cmp dword [rsp + 0x78], esi
je 0x140088872
mov rcx, qword [r14]
call fcn.1400c34b0
cmp rax, 0x1000000
mov rbx, rax
jg 0x140088872
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.140057e3c
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.140051824
mov rcx, qword [rsp + 0xa0]
mov rdx, rbx
call fcn.1400699fc
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 0x14008899a
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.140057e3c
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 0x140088925
cmp eax, esi
jne 0x140088934
cmp bpl, 2
jne 0x140088920
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088934
mov rcx, qword [rsp + 0x138]
sub rbx, r12
js 0x140088934
add r13d, ecx
movsxd r15, r13d
mov byte [rdi + r15], sil
jmp 0x1400888a6
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14005fb94
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rax
call fcn.140057714
lea rcx, [rsp + 0x50]
call fcn.140050424
mov rbx, qword [rsp + 0x68]
cmp rbx, rsi
je 0x14008897b
cmp rbx, 0xffffffffffffffff
je 0x14008897b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.140050424
lea rcx, [rsp + 0xa0]
call fcn.140050424
jmp 0x140088cba
cmp al, sil
je 0x140088a69
mov rax, qword [rsp + 0xb8]
lea rdx, [0x1400f0e98]
lea rcx, [rsp + 0x90]
cmp rax, rsi
cmovne rdx, rax
or r8, 0xffffffffffffffff
call fcn.14006256c
or r15b, r12b
lea rcx, [rsp + 0x50]
call fcn.140058038
cmp byte [rsp + 0x40], sil
jne 0x1400889f0
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140058174
lea rdx, [rsp + 0x50]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
mov byte [rsp + 0x40], sil
call fcn.14005f764
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x140088a1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088a48
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.14005fb94
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140058174
lea rcx, [rsp + 0x50]
call fcn.140050424
cmp edi, esi
je 0x140088a52
jmp 0x1400889cd
lea rcx, [rsp + 0x50]
call fcn.140050424
lea rcx, [rsp + 0x90]
mov ebp, 0x4b0
call fcn.140050424
jmp 0x140088c62
cmp r13, rsi
jge 0x140088ad6
mov bl, byte [rsp + 0x138]
mov rdi, rsi
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005f764
mov r13d, eax
cmp bl, 2
jne 0x140088a9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088aa8
cmp r13d, esi
je 0x140088aa8
add rdi, r12
jmp 0x140088a78
lea rcx, [rsp + 0x48]
mov edx, 0x20
mov ebp, 0x4b0
call fcn.140057e3c
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1400f0cb8]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140088c5d
jne 0x140088b2f
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.14005f764
cmp byte [rsp + 0x138], 2
mov r12d, eax
jne 0x140088b25
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088c62
cmp r12d, esi
jne 0x140088adb
jmp 0x140088c62
cmp r12, qword [rsp + 0x70]
mov r13, r12
jge 0x140088b7e
mov rbx, qword [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005f764
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x140088b68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088b74
cmp edi, esi
je 0x140088b74
add r13, r12
cmp r13, rbx
jl 0x140088b3e
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
mov byte [rdi], sil
cmp qword [rsp + 0x50], r12
jne 0x140088ba3
or r15b, r12b
lea rdx, [rsp + 0x48]
mov r8d, ebp
mov r9b, r15b
mov rcx, r14
call fcn.14005f764
jmp 0x140088c62
lea rcx, [rsp + 0x70]
call fcn.140058038
mov rax, qword [rsp + 0x50]
mov bl, byte [rsp + 0x138]
movsxd r13, eax
lea rdi, [0x1400f3af0]
cmp r13, rsi
je 0x140088bd2
sub rax, r12
mov qword [rsp + 0x50], rax
js 0x140088c4e
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.14005f764
mov dword [rsp + 0x138], eax
cmp bl, 2
jne 0x140088c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140088c4e
mov eax, dword [rsp + 0x138]
cmp eax, esi
je 0x140088c4e
lea rcx, [rsp + 0x70]
mov edx, ebp
call fcn.14005fb94
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140058174
cmp r13, rsi
je 0x140088c37
cmp qword [rsp + 0x50], rsi
jle 0x140088c4e
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140058174
mov rax, qword [rsp + 0x50]
jmp 0x140088bc3
lea rcx, [rsp + 0x70]
mov ebp, 0x4b0
call fcn.140050424
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov edx, ebp
call fcn.14005fb94
mov r12d, esi
mov rdi, rax
cmp rbx, rsi
je 0x140088c88
cmp rbx, 0xffffffffffffffff
je 0x140088c88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.140050424
lea rcx, [rsp + 0xa0]
call fcn.140050424
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rdi
call fcn.140057714
movsxd rsi, r12d
lea rcx, [rsp + 0x48]
call fcn.140050424
lea rcx, [rsp + 0xc0]
call fcn.140050424
lea rcx, [rsp + 0x60]
call fcn.140050424
lea rcx, [rsp + 0x98]
call fcn.140050424
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