Function at 0x1400838ac
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 0x140083919
cmp word [r11], cx
jbe 0x14008391f
cmp r8w, word [r11]
jne 0x140083930
mov ebp, esi
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x58], rbp
jmp 0x140083aac
lea rcx, str._UNI
mov r8d, r13d
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x140083953
mov ebp, edi
mov qword [rsp + 0x58], rbp
jmp 0x140083a7f
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.140050a10
cmp al, sil
jne 0x140083947
mov edi, 5
lea rcx, str._UNIB
mov rdx, r11
mov r8d, edi
call fcn.140050a10
cmp al, sil
je 0x14008398e
mov ebp, r15d
jmp 0x140083949
lea rcx, str._UNICODEB
mov r8d, 9
mov rdx, r11
call fcn.140050a10
cmp al, sil
jne 0x140083989
lea rcx, str._ANSI
mov r8d, edi
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x1400839c3
mov ebp, esi
jmp 0x140083949
lea rcx, str._GBK
mov r8d, r13d
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x1400839e4
mov ebp, 0x3a8
jmp 0x140083949
lea rcx, str._BIG5
mov r8d, edi
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x140083a05
mov ebp, 0x3b6
jmp 0x140083949
lea rcx, str._UTF8
mov r8d, edi
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x140083a26
mov ebp, 0xfde9
jmp 0x140083949
lea rcx, str._UTF7
mov r8d, edi
mov rdx, r11
call fcn.140050a10
cmp al, sil
je 0x140083a47
mov ebp, 0xfde8
jmp 0x140083949
mov eax, 0x2d
cmp ax, word [r11]
jne 0x140083a7f
lea rcx, [r11 + 2]
mov edx, 9
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, dx
ja 0x140083a84
mov r11, rcx
mov qword [rsp + 0x128], rcx
call fcn.1400583bc
mov rbp, rax
mov qword [rsp + 0x58], rax
mov edx, 9
mov r8d, 0x20
lea ecx, [r8 - 0x13]
jmp 0x140083aac
cmp dx, ax
ja 0x140083a9a
cmp ax, cx
jbe 0x140083ab5
cmp r8w, ax
je 0x140083ab5
add r11, 2
mov qword [rsp + 0x128], r11
movzx eax, word [r11]
cmp ax, si
jne 0x140083a90
lea rcx, [rsp + 0x128]
call fcn.14004f534
lea rdx, [rsp + 0x128]
lea rcx, [0x1400f9294]
mov r8d, r13d
call fcn.14005992c
lea rdx, [0x1400ee4c4]
lea rcx, [rsp + 0x98]
neg al
sbb r15b, r15b
and r15b, 2
call fcn.14006160c
lea rdx, str.READLINE
lea rcx, [rsp + 0x60]
call fcn.14006160c
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.140049210
mov r9, qword [rsp + 0x98]
lea rcx, [0x1400f927c]
mov rdx, r9
mov qword [rsp + 0x128], rax
call fcn.140050aa8
cmp al, sil
je 0x140083c52
mov qword [rsp + 0x90], r12
mov bl, r12b
mov byte [rsp + 0x138], bl
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xb8], rsi
call fcn.140057154
mov rdx, qword [rsp + 0x128]
lea r8, [rsp + 0xc0]
xor r9d, r9d
mov rcx, rdi
mov byte [rsp + 0x20], r12b
call fcn.140069518
mov r11, qword [rsp + 0xc0]
mov eax, 0x2c
mov qword [rsp + 0x128], r11
cmp word [r11], ax
jne 0x140083d7d
lea rcx, [rsp + 0x48]
call fcn.140057154
add qword [rsp + 0x128], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x128]
mov r8d, 0x2c
call fcn.14005aa6c
mov r11, qword [rsp + 0x48]
lea rcx, [0x1400f9278]
mov rdx, r11
mov qword [rsp + 0x80], r11
call fcn.140050aa8
cmp al, sil
je 0x140083c93
lea rdi, [0x1400f9274]
mov r14b, 2
mov qword [rsp + 0xb8], rdi
mov rdi, qword [rsp + 0x120]
mov byte [rsp + 0x40], r14b
jmp 0x140083d3f
cmp word [r9], si
je 0x140083b84
lea rcx, [0x1400ef7a8]
mov rdx, r9
call fcn.140050aa8
cmp al, sil
jne 0x140083b84
lea rcx, [0x1400eef64]
mov rdx, r9
call fcn.140050aa8
cmp al, sil
je 0x140083b8e
mov bl, 2
jmp 0x140083b87
lea rcx, [0x1400f9270]
mov rdx, r11
call fcn.140050aa8
cmp al, sil
je 0x140083cb4
mov r14b, 3
mov byte [rsp + 0x40], r14b
jmp 0x140083d3f
lea rcx, [0x1400f4384]
mov rdx, r11
call fcn.140050aa8
cmp al, sil
je 0x140083ce1
lea rax, [0x1400f926c]
mov r14b, r12b
mov byte [rsp + 0x40], r12b
mov qword [rsp + 0xb8], rax
jmp 0x140083d3f
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x80]
call fcn.140065394
mov rax, qword [rsp + 0x80]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x140083d35
add rax, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x80], rax
call fcn.140065394
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.14004f564
mov r11, qword [rsp + 0x128]
mov eax, 0x2c
cmp word [r11], ax
jne 0x140083d7d
add r11, 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x128]
mov r8d, eax
mov qword [rsp + 0x128], r11
call fcn.14005aa6c
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, rdi
call fcn.140003728
lea rcx, [rsp + 0x48]
mov edx, 8
call fcn.140056f64
cmp ebp, esi
mov rdi, qword [rsp + 0x48]
mov word [rdi], si
jl 0x140084a7e
lea rcx, [rsp + 0xa0]
call fcn.140056f00
mov rax, qword [rsp + 0x98]
mov ecx, 0x75
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rsi
cmp cx, word [rax]
jne 0x140084023
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x140084023
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x140084023
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 0x140083e30
add r10, 2
mov qword [rsp + 0x138], r10
lea rcx, [rsp + 0x138]
call fcn.140045808
mov rcx, qword [rsp + 0x138]
cmp rcx, r10
je 0x140083e5d
cmp word [rcx - 2], r9w
jne 0x140083e5d
mov word [rcx - 2], si
mov rcx, qword [rsp + 0x138]
cmp dx, word [rcx]
jne 0x140083e79
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 0x140083ea8
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x138], rcx
cmp r9w, word [rcx]
jne 0x140083ea3
mov word [rcx], si
mov rcx, qword [rsp + 0x138]
cmp word [rcx], si
jne 0x140083e86
lea rdx, [rsp + 0xa0]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rsi
call fcn.140049de8
mov rbx, qword [rsp + 0xa8]
cmp ebx, esi
mov r11, qword [rsp + 0xa0]
jle 0x140083eed
mov rax, qword [rsp + 0xb0]
lea r8, [r11 + rax]
mov qword [rsp + 0x128], r8
jmp 0x140083ef5
mov r8, qword [rsp + 0x128]
movsx edx, byte [r8]
mov rcx, rsi
cmp edx, 0xff
jne 0x140083f17
movsx eax, byte [r8 + 1]
cmp eax, 0xfe
jne 0x140083f17
mov ebp, 0x4b0
jmp 0x140083f30
cmp edx, 0xfe
jne 0x140083f37
movsx eax, byte [r8 + 1]
cmp eax, 0xff
jne 0x140083f37
mov ebp, 0x4b1
mov ecx, 2
jmp 0x140083f61
cmp edx, 0xef
jne 0x140083f61
movsx eax, byte [r8 + 1]
cmp eax, 0xbb
jne 0x140083f61
movsx eax, byte [r8 + 2]
cmp eax, 0xbf
jne 0x140083f61
mov ebp, 0xfde9
mov ecx, 3
sub ebx, ecx
lea rdi, [rcx + r8]
cmp ebp, 0x4b1
jne 0x140083f97
movsxd rdx, ebx
and rdx, 0xfffffffffffffffe
add rdx, rdi
cmp rdi, rdx
ja 0x1400840a7
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 0x140083f82
jmp 0x140084016
cmp ebp, 0x4b0
je 0x1400840a7
cmp dword [rsp + 0x78], esi
je 0x140083fbe
movsxd rdx, ebx
mov rcx, rdi
call fcn.140068adc
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.140056fe0
lea rcx, [rsp + 0xa0]
movsxd r9, ebp
mov r8, rbx
mov rdx, rdi
call fcn.140057310
mov r11, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x128], r11
call fcn.14004f564
mov r8, qword [rsp + 0x128]
jmp 0x1400840a7
mov rax, qword [rsp + 0x60]
cmp word [rax], si
jne 0x14008406f
lea rcx, [rsp + 0xa0]
call fcn.14004f564
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0xc0]
call fcn.14004f564
lea rcx, [rsp + 0x60]
call fcn.14004f564
lea rcx, [rsp + 0x98]
call fcn.14004f564
xor eax, eax
jmp 0x140084ac7
mov r8, qword [rsp + 0x128]
cmp bl, r12b
jne 0x140084092
mov eax, 0x2c
cmp word [r8], ax
je 0x140084092
mov r12d, 0x80070057
jmp 0x140084a71
add r8, 2
mov qword [rsp + 0x128], r8
test r12b, bl
je 0x14008444b
mov qword [rsp + 0x70], rsi
cmp qword [rsp + 0x90], rsi
je 0x140084165
lea rcx, [rsp + 0x128]
call fcn.14004f534
mov r8, qword [rsp + 0x128]
mov edi, 0xd
movzx eax, word [r8]
mov rdx, r8
lea ebp, [rdi + 0x13]
cmp ax, si
je 0x14008411e
lea ecx, [rdi - 4]
cmp cx, ax
ja 0x1400840f0
cmp ax, di
jbe 0x14008410c
cmp bp, ax
je 0x14008410c
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
je 0x14008411e
jmp 0x1400840e6
cmp word [r8], si
je 0x14008411e
mov word [r8], si
mov r8, qword [rsp + 0x128]
mov r15, qword [rsp + 0x120]
cmp word [rdx], si
je 0x140084175
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r15
call fcn.14001b2ac
cmp rax, rsi
je 0x14008415b
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140061724
mov r8, qword [rsp + 0x70]
mov qword [rsp + 0x128], r8
jmp 0x140084175
mov r8, qword [rsp + 0x128]
jmp 0x140084175
mov r15, qword [rsp + 0x120]
mov edi, 0xd
lea ebp, [rdi + 0x13]
mov r9, r8
cmp r14b, 3
jne 0x140084190
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140056790
jmp 0x14008443c
cmp r14b, sil
je 0x14008427d
lea rax, [0x1400f2160]
lea rdi, [0x1400f1a20]
lea rcx, [rsp + 0x138]
cmp r14b, r12b
cmove rdi, rax
call fcn.140057154
mov r11, qword [rsp + 0x128]
movzx eax, word [r11]
mov rbp, r11
cmp ax, si
je 0x140084249
mov ebx, 0xa
lea ecx, [rbx + 3]
cmp ax, cx
jne 0x1400841f2
cmp word [r11 + 2], bx
jne 0x1400841f7
mov word [r11], si
add qword [rsp + 0x128], 2
jmp 0x1400841fb
cmp ax, bx
jne 0x140084234
mov word [r11], si
cmp r14b, sil
jne 0x140084210
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.140057290
lea rcx, [rsp + 0x138]
mov rdx, rbp
mov r14b, sil
call fcn.140057290
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 0x1400841d7
cmp word [rbp], si
je 0x14008441a
cmp r14b, sil
jne 0x140084268
lea rcx, [rsp + 0x138]
mov rdx, rdi
call fcn.140057290
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.140057290
jmp 0x14008441a
cmp r13, rsi
jge 0x1400842ec
movzx eax, word [r8]
mov rdi, rsi
cmp ax, si
je 0x1400842bf
mov ebx, 0xa
cmp ax, bx
jne 0x14008429b
add rdi, r12
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x140084293
cmp r8, r9
jbe 0x1400842bf
cmp word [r8 - 2], bx
je 0x1400842bf
add rdi, r12
lea rcx, [rsp + 0x138]
mov rdx, rbp
call fcn.1400571c8
mov rcx, qword [rsp + 0x138]
lea rdx, [0x1400eec10]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14008441a
mov ebx, 0xa
jne 0x140084385
movzx eax, word [r8]
mov rcx, r8
mov rdx, r8
cmp ax, si
je 0x140084353
cmp ax, bx
jne 0x140084311
mov rdx, rcx
mov rcx, r8
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x140084306
cmp r8, r9
jbe 0x140084343
cmp word [r8 - 2], bx
je 0x140084343
cmp word [rcx], bx
jne 0x14008433b
add rcx, 2
mov r8, rcx
jmp 0x14008417e
cmp rcx, r9
jbe 0x140084353
lea rax, [rcx - 2]
cmp word [rax], di
cmove rcx, rax
cmp word [rdx], bx
jne 0x14008435c
add rdx, 2
sub rcx, rdx
sar rcx, 1
mov r8, rcx
jmp 0x14008440d
cmp word [r8], si
je 0x14008438a
cmp word [r8], bx
jne 0x140084379
sub r13, r12
add r8, 2
mov qword [rsp + 0x128], r8
cmp r13, r12
jg 0x14008436a
movzx eax, word [r8]
mov r9, qword [rsp + 0x50]
mov rdx, r8
mov rcx, r9
cmp ax, si
je 0x140084407
mov r10d, 0xd
cmp rcx, rsi
je 0x1400843cb
sub r9, r12
js 0x140084407
jmp 0x1400843cb
cmp ax, r10w
je 0x1400843d0
cmp ax, bx
je 0x1400843d0
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400843b0
cmp rcx, rsi
je 0x1400843da
cmp r9, rsi
je 0x140084407
cmp r10w, word [r8]
jne 0x1400843ec
add r8, 2
mov qword [rsp + 0x128], r8
cmp bx, word [r8]
jne 0x1400843fe
add r8, 2
mov qword [rsp + 0x128], r8
mov ax, word [r8]
cmp ax, si
jne 0x1400843a4
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x138]
call fcn.140061630
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.140056790
lea rcx, [rsp + 0x138]
call fcn.14004f564
lea rcx, [rsp + 0x70]
call fcn.14004f564
jmp 0x14008402d
lea rcx, [rsp + 0x80]
mov edx, 8
call fcn.140056f64
xor eax, eax
mov word [rdi], si
mov qword [rsp + 0xd8], rax
mov rax, qword [0x1401092e0]
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 0x140084653
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.140003590
cmp qword [r14], rsi
jne 0x140084506
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov r12d, eax
cmp rcx, rsi
je 0x140084a64
cmp rcx, 0xffffffffffffffff
je 0x140084a64
jmp 0x140084a5e
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 0x140084576
cmp byte [rsp + 0x89], 0xfe
jne 0x1400845ba
mov ebp, 0x4b0
mov ebx, 2
jmp 0x1400845b1
cmp r11b, 0xfe
jne 0x14008458d
cmp byte [rsp + 0x89], 0xff
jne 0x1400845ba
mov ebp, 0x4b1
jmp 0x14008456f
cmp r11b, 0xef
jne 0x1400845ba
cmp byte [rsp + 0x89], 0xbb
jne 0x1400845ba
cmp byte [rsp + 0x8a], 0xbf
jne 0x1400845ba
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.140050964
cmp rax, rsi
mov qword [rsp + 0xc8], rax
jl 0x1400844e0
cmp dword [rsp + 0x78], esi
je 0x14008464e
mov rcx, qword [r14]
call fcn.1400c12e8
cmp rax, 0x1000000
mov rbx, rax
jg 0x14008464e
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.140056fe0
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.140050964
mov rcx, qword [rsp + 0xa0]
mov rdx, rbx
call fcn.140068adc
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 0x140084776
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.140056fe0
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 0x140084701
cmp eax, esi
jne 0x140084710
cmp bpl, 2
jne 0x1400846fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084710
mov rcx, qword [rsp + 0x138]
sub rbx, r12
js 0x140084710
add r13d, ecx
movsxd r15, r13d
mov byte [rdi + r15], sil
jmp 0x140084682
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14005ec74
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rax
call fcn.140056790
lea rcx, [rsp + 0x50]
call fcn.14004f564
mov rbx, qword [rsp + 0x68]
cmp rbx, rsi
je 0x140084757
cmp rbx, 0xffffffffffffffff
je 0x140084757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14004f564
lea rcx, [rsp + 0xa0]
call fcn.14004f564
jmp 0x140084a96
cmp al, sil
je 0x140084845
mov rax, qword [rsp + 0xb8]
lea rdx, [0x1400eedf0]
lea rcx, [rsp + 0x90]
cmp rax, rsi
cmovne rdx, rax
or r8, 0xffffffffffffffff
call fcn.14006164c
or r15b, r12b
lea rcx, [rsp + 0x50]
call fcn.140057154
cmp byte [rsp + 0x40], sil
jne 0x1400847cc
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140057290
lea rdx, [rsp + 0x50]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
mov byte [rsp + 0x40], sil
call fcn.14005e844
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x1400847fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084824
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.14005ec74
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140057290
lea rcx, [rsp + 0x50]
call fcn.14004f564
cmp edi, esi
je 0x14008482e
jmp 0x1400847a9
lea rcx, [rsp + 0x50]
call fcn.14004f564
lea rcx, [rsp + 0x90]
mov ebp, 0x4b0
call fcn.14004f564
jmp 0x140084a3e
cmp r13, rsi
jge 0x1400848b2
mov bl, byte [rsp + 0x138]
mov rdi, rsi
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005e844
mov r13d, eax
cmp bl, 2
jne 0x14008487a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084884
cmp r13d, esi
je 0x140084884
add rdi, r12
jmp 0x140084854
lea rcx, [rsp + 0x48]
mov edx, 0x20
mov ebp, 0x4b0
call fcn.140056fe0
mov rcx, qword [rsp + 0x48]
lea rdx, [0x1400eec10]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140084a39
jne 0x14008490b
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.14005e844
cmp byte [rsp + 0x138], 2
mov r12d, eax
jne 0x140084901
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084a3e
cmp r12d, esi
jne 0x1400848b7
jmp 0x140084a3e
cmp r12, qword [rsp + 0x70]
mov r13, r12
jge 0x14008495a
mov rbx, qword [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov r9b, r15b
mov r8d, ebp
mov rcx, r14
call fcn.14005e844
cmp byte [rsp + 0x138], 2
mov edi, eax
jne 0x140084944
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084950
cmp edi, esi
je 0x140084950
add r13, r12
cmp r13, rbx
jl 0x14008491a
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
mov byte [rdi], sil
cmp qword [rsp + 0x50], r12
jne 0x14008497f
or r15b, r12b
lea rdx, [rsp + 0x48]
mov r8d, ebp
mov r9b, r15b
mov rcx, r14
call fcn.14005e844
jmp 0x140084a3e
lea rcx, [rsp + 0x70]
call fcn.140057154
mov rax, qword [rsp + 0x50]
mov bl, byte [rsp + 0x138]
movsxd r13, eax
lea rdi, [0x1400f1a20]
cmp r13, rsi
je 0x1400849ae
sub rax, r12
mov qword [rsp + 0x50], rax
js 0x140084a2a
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.14005e844
mov dword [rsp + 0x138], eax
cmp bl, 2
jne 0x1400849ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084a2a
mov eax, dword [rsp + 0x138]
cmp eax, esi
je 0x140084a2a
lea rcx, [rsp + 0x70]
mov edx, ebp
call fcn.14005ec74
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140057290
cmp r13, rsi
je 0x140084a13
cmp qword [rsp + 0x50], rsi
jle 0x140084a2a
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140057290
mov rax, qword [rsp + 0x50]
jmp 0x14008499f
lea rcx, [rsp + 0x70]
mov ebp, 0x4b0
call fcn.14004f564
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov edx, ebp
call fcn.14005ec74
mov r12d, esi
mov rdi, rax
cmp rbx, rsi
je 0x140084a64
cmp rbx, 0xffffffffffffffff
je 0x140084a64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.14004f564
lea rcx, [rsp + 0xa0]
call fcn.14004f564
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
mov r8, rdi
call fcn.140056790
movsxd rsi, r12d
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0xc0]
call fcn.14004f564
lea rcx, [rsp + 0x60]
call fcn.14004f564
lea rcx, [rsp + 0x98]
call fcn.14004f564
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