Function at 0x140083954
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, 0xd0
xor ebp, ebp
mov r11, rdx
mov edi, 0x4b0
lea r15d, [rbp + 9]
mov r12d, 0xffff0000
mov bl, bpl
mov rsi, rcx
mov byte [rsp + 0x40], bpl
lea edx, [rbp + 0x20]
mov byte [rsp + 0x128], bl
mov qword [rsp + 0x48], r12
lea ecx, [rbp + 0xd]
lea r14d, [rdi + 1]
lea r13d, [rbp + 4]
cmp r15w, word [r11]
ja 0x1400839ba
cmp word [r11], cx
jbe 0x1400839c0
cmp dx, word [r11]
jne 0x1400839cd
mov r12d, ebp
mov qword [rsp + 0x48], r12
jmp 0x140083b41
lea rcx, str._UNI
mov r8d, r13d
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x1400839f1
mov r12d, edi
mov qword [rsp + 0x48], r12
jmp 0x140083b1b
lea rcx, str._UNICODE
mov r8d, 8
mov rdx, r11
call fcn.140045f78
cmp al, bpl
jne 0x1400839e4
mov edi, 5
lea rcx, str._UNIB
mov rdx, r11
mov r8d, edi
call fcn.140045f78
cmp al, bpl
je 0x140083a2c
mov r12d, r14d
jmp 0x1400839e7
lea rcx, str._UNICODEB
mov r8d, r15d
mov rdx, r11
call fcn.140045f78
cmp al, bpl
jne 0x140083a27
lea rcx, str._ANSI
mov r8d, edi
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x140083a5f
mov r12d, ebp
jmp 0x1400839e7
lea rcx, str._GBK
mov r8d, r13d
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x140083a81
mov r12d, 0x3a8
jmp 0x1400839e7
lea rcx, str._BIG5
mov r8d, edi
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x140083aa3
mov r12d, 0x3b6
jmp 0x1400839e7
lea rcx, str._UTF8
mov r8d, edi
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x140083ac5
mov r12d, 0xfde9
jmp 0x1400839e7
lea rcx, str._UTF7
mov r8d, edi
mov rdx, r11
call fcn.140045f78
cmp al, bpl
je 0x140083ae7
mov r12d, 0xfde8
jmp 0x1400839e7
mov eax, 0x2d
cmp ax, word [r11]
jne 0x140083b1b
lea rcx, [r11 + 2]
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, r15w
ja 0x140083b1b
mov r11, rcx
mov qword [rsp + 0x118], rcx
call fcn.14004cfc0
mov r12, rax
mov qword [rsp + 0x48], rax
mov edx, 0x20
lea ecx, [rdx - 0x13]
jmp 0x140083b41
cmp r15w, ax
ja 0x140083b30
cmp ax, cx
jbe 0x140083b4a
cmp dx, ax
je 0x140083b4a
add r11, 2
mov qword [rsp + 0x118], r11
movzx eax, word [r11]
cmp ax, bp
jne 0x140083b25
lea rcx, [rsp + 0x118]
call fcn.140044ef4
lea rdx, [rsp + 0x118]
lea rcx, str.fix
mov r8d, r13d
call fcn.14004e558
lea rdx, [0x1400d63f4]
lea rcx, [rsp + 0xa8]
neg al
sbb r14b, r14b
and r14b, 2
mov byte [rsp + 0x41], r14b
call fcn.140058920
lea rdx, str.READLINE
lea rcx, [rsp + 0x80]
call fcn.140058920
mov r13d, 1
lea r8, [rsp + 0xa8]
lea edi, [r13 + 0x2b]
lea rdx, [rsp + 0x118]
mov rcx, rsi
mov r9d, edi
mov r15d, r13d
mov dword [rsp + 0x90], r13d
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x78], ebp
mov word [rsp + 0x20], bp
call fcn.14003f478
mov r9, qword [rsp + 0xa8]
lea rcx, [0x1400e050c]
mov qword [rsp + 0x118], rax
mov rdx, r9
call fcn.140045ff4
cmp al, bpl
je 0x140083cd6
mov dword [rsp + 0x78], r13d
mov bl, r13b
mov byte [rsp + 0x128], bl
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x88], rbp
call fcn.14004be6c
mov rdx, qword [rsp + 0x118]
lea r8, [rsp + 0xb0]
xor r9d, r9d
mov rcx, rsi
mov byte [rsp + 0x20], r13b
call fcn.140054c4c
mov r11, qword [rsp + 0xb0]
mov qword [rsp + 0x118], r11
cmp word [r11], di
jne 0x140083de5
lea rcx, [rsp + 0x70]
call fcn.14004be6c
add qword [rsp + 0x118], 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x118]
mov r8d, edi
call fcn.14004f5d4
mov r11, qword [rsp + 0x70]
lea rcx, [0x1400e0508]
mov rdx, r11
mov qword [rsp + 0x60], r11
call fcn.140045ff4
cmp al, bpl
je 0x140083d17
lea rdi, [0x1400e0504]
mov byte [rsp + 0x40], 2
mov qword [rsp + 0x88], rdi
mov edi, 0x2c
jmp 0x140083da9
cmp word [r9], bp
je 0x140083c19
lea rcx, [0x1400d7440]
mov rdx, r9
call fcn.140045ff4
cmp al, bpl
jne 0x140083c19
lea rcx, [0x1400d6b40]
mov rdx, r9
call fcn.140045ff4
cmp al, bpl
je 0x140083c23
mov bl, 2
jmp 0x140083c1c
lea rcx, [0x1400e0500]
mov rdx, r11
call fcn.140045ff4
cmp al, bpl
je 0x140083d32
mov byte [rsp + 0x40], 3
jmp 0x140083da9
lea rcx, [0x1400db2d4]
mov rdx, r11
call fcn.140045ff4
cmp al, bpl
je 0x140083d5c
lea rcx, [0x1400e04fc]
mov byte [rsp + 0x40], r13b
mov qword [rsp + 0x88], rcx
jmp 0x140083da9
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14004fc04
mov rax, qword [rsp + 0x60]
mov r11d, 0x2b
cmp r11w, word [rax]
jne 0x140083d9c
add rax, 2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.14004fc04
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x68], eax
mov r15d, dword [rsp + 0x50]
mov dword [rsp + 0x90], r15d
lea rcx, [rsp + 0x70]
call fcn.140044f24
mov r11, qword [rsp + 0x118]
cmp word [r11], di
jne 0x140083de5
add r11, 2
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x118]
mov r8d, edi
mov qword [rsp + 0x118], r11
call fcn.14004f5d4
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rsi
call fcn.1400035d0
lea rcx, [rsp + 0x50]
mov edx, 8
call fcn.14004bc80
cmp r12d, ebp
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
mov word [rdi], bp
jl 0x140084a51
lea rcx, [rsp + 0x98]
call fcn.14004bc1c
mov rax, qword [rsp + 0xa8]
mov ecx, 0x75
mov dword [rsp + 0xa0], ebp
mov dword [rsp + 0xa4], ebp
cmp cx, word [rax]
jne 0x14008407e
mov ecx, 0x64
cmp cx, word [rax + 2]
jne 0x14008407e
lea edx, [rcx - 0x2a]
cmp dx, word [rax + 4]
jne 0x14008407e
add rax, 6
lea r9d, [rcx - 0x42]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x118]
mov word [rax], bp
mov r10, qword [rsp + 0x128]
cmp r9w, word [r10]
jne 0x140083ea2
add r10, 2
mov qword [rsp + 0x128], r10
lea rcx, [rsp + 0x128]
call fcn.1400588ac
mov rcx, qword [rsp + 0x128]
cmp rcx, r10
je 0x140083ecf
cmp word [rcx - 2], r9w
jne 0x140083ecf
mov word [rcx - 2], bp
mov rcx, qword [rsp + 0x128]
cmp dx, word [rcx]
jne 0x140083eeb
mov word [rcx], bp
mov rcx, qword [rsp + 0x128]
add rcx, 2
mov qword [rsp + 0x128], rcx
mov r8, rcx
cmp r9w, word [rcx]
jne 0x140083f1a
lea r8, [rcx + 2]
add rcx, 2
mov qword [rsp + 0x128], rcx
cmp r9w, word [rcx]
jne 0x140083f15
mov word [rcx], bp
mov rcx, qword [rsp + 0x128]
cmp word [rcx], bp
jne 0x140083ef8
lea rdx, [rsp + 0x98]
mov r9d, 0x10000
mov rcx, r10
mov qword [rsp + 0x20], rbp
call fcn.1400407e8
mov edi, dword [rsp + 0xa0]
cmp edi, ebp
mov r11, qword [rsp + 0x98]
jle 0x140083f5d
movsxd rcx, dword [rsp + 0xa4]
add rcx, r11
mov qword [rsp + 0x118], rcx
jmp 0x140083f65
mov rcx, qword [rsp + 0x118]
movsx r8d, byte [rcx]
mov edx, ebp
cmp r8d, 0xff
jne 0x140083f8c
movsx eax, byte [rcx + 1]
cmp eax, 0xfe
jne 0x140083f8c
mov edx, 2
mov r12d, 0x4b0
jmp 0x140083fd7
cmp r8d, 0xfe
jne 0x140083fad
movsx eax, byte [rcx + 1]
cmp eax, 0xff
jne 0x140083fad
mov edx, 2
mov r12d, 0x4b1
jmp 0x140083fd7
cmp r8d, 0xef
jne 0x140083fd7
movsx eax, byte [rcx + 1]
cmp eax, 0xbb
jne 0x140083fd7
movsx eax, byte [rcx + 2]
cmp eax, 0xbf
jne 0x140083fd7
mov edx, 3
mov r12d, 0xfde9
movsxd rbx, edx
sub edi, edx
add rbx, rcx
cmp r12d, 0x4b1
jne 0x140084010
movsxd rdx, edi
and rdx, 0xfffffffffffffffe
add rdx, rbx
cmp rbx, rdx
ja 0x1400840ff
mov cl, byte [rbx]
mov al, byte [rbx + 1]
mov byte [rbx], al
mov byte [rbx + 1], cl
add rbx, 2
cmp rbx, rdx
jbe 0x140083ffb
jmp 0x140084071
cmp r12d, 0x4b0
je 0x1400840ff
lea edx, [rdi + rdi + 0x20]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x98], rbp
call fcn.14004bd00
lea rcx, [rsp + 0x98]
mov r9d, r12d
mov r8d, edi
mov rdx, rbx
call fcn.14004c024
mov r11, qword [rsp + 0x98]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x118], r11
call fcn.140044f24
mov rcx, qword [rsp + 0x118]
jmp 0x1400840ff
cmp word [rsi], bp
jne 0x1400840c8
lea rcx, [rsp + 0x98]
call fcn.140044f24
lea rcx, [rsp + 0x50]
call fcn.140044f24
lea rcx, [rsp + 0xb0]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
lea rcx, [rsp + 0xa8]
call fcn.140044f24
xor eax, eax
jmp 0x140084a9a
mov rcx, qword [rsp + 0x118]
cmp bl, r13b
jne 0x1400840ea
mov eax, 0x2c
cmp word [rcx], ax
je 0x1400840ea
mov r13d, 0x80070057
jmp 0x140084a44
add rcx, 2
mov qword [rsp + 0x118], rcx
test r13b, bl
je 0x1400844a0
mov qword [rsp + 0x60], rbp
cmp dword [rsp + 0x78], ebp
je 0x1400841bb
lea rcx, [rsp + 0x118]
call fcn.140044ef4
mov rcx, qword [rsp + 0x118]
movzx eax, word [rcx]
mov rdx, rcx
cmp ax, bp
je 0x140084174
mov r8d, 0xd
lea r9d, [r8 - 4]
lea r10d, [r8 + 0x13]
cmp r9w, ax
ja 0x140084148
cmp ax, r8w
jbe 0x140084164
cmp r10w, ax
je 0x140084164
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, bp
je 0x140084174
jmp 0x14008413c
cmp word [rcx], bp
je 0x140084174
mov word [rcx], bp
mov rcx, qword [rsp + 0x118]
mov r12, qword [rsp + 0x110]
cmp word [rdx], bp
je 0x1400841c3
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
call fcn.140017d60
cmp rax, rbp
je 0x1400841b1
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.140058a38
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x118], rcx
jmp 0x1400841c3
mov rcx, qword [rsp + 0x118]
jmp 0x1400841c3
mov r12, qword [rsp + 0x110]
mov r14b, byte [rsp + 0x40]
mov r8, rcx
cmp r14b, 3
jne 0x1400841e1
mov rdx, rsi
mov rcx, r12
call fcn.14004b578
jmp 0x140084491
cmp r14b, bpl
je 0x1400842d3
lea rax, [0x1400d9870]
lea rdi, [0x1400d91e8]
lea rcx, [rsp + 0x128]
cmp r14b, r13b
cmove rdi, rax
call fcn.14004be6c
mov r11, qword [rsp + 0x118]
movzx eax, word [r11]
mov r12, r11
cmp ax, bp
je 0x14008429a
mov ebx, 0xa
lea ecx, [rbx + 3]
cmp ax, cx
jne 0x140084243
cmp word [r11 + 2], bx
jne 0x140084248
mov word [r11], bp
add qword [rsp + 0x118], 2
jmp 0x14008424c
cmp ax, bx
jne 0x140084285
mov word [r11], bp
cmp r14b, bpl
jne 0x140084261
lea rcx, [rsp + 0x128]
mov rdx, rdi
call fcn.14004bfa8
lea rcx, [rsp + 0x128]
mov rdx, r12
mov r14b, bpl
call fcn.14004bfa8
mov r11, qword [rsp + 0x118]
mov ecx, 0xd
lea r12, [r11 + 2]
add r11, 2
mov qword [rsp + 0x118], r11
mov ax, word [r11]
cmp ax, bp
jne 0x140084228
cmp word [r12], bp
je 0x1400842c6
cmp r14b, bpl
jne 0x1400842b6
lea rcx, [rsp + 0x128]
mov rdx, rdi
call fcn.14004bfa8
lea rcx, [rsp + 0x128]
mov rdx, r12
call fcn.14004bfa8
mov rcx, qword [rsp + 0x110]
jmp 0x140084474
cmp r15d, ebp
jge 0x140084340
movzx eax, word [rcx]
mov edi, ebp
cmp ax, bp
je 0x140084311
mov ebx, 0xa
cmp ax, bx
jne 0x1400842ef
add edi, r13d
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, bp
jne 0x1400842e7
cmp rcx, r8
jbe 0x140084311
cmp word [rcx - 2], bx
je 0x140084311
add edi, r13d
lea rcx, [rsp + 0x128]
mov edx, 0x20
call fcn.14004bedc
mov rcx, qword [rsp + 0x128]
lea rdx, [0x1400d6908]
mov r8d, edi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140084471
mov ebx, 0xa
jne 0x1400843dd
movzx eax, word [rcx]
mov rdx, rcx
mov r9, rcx
cmp ax, bp
je 0x1400843a9
cmp ax, bx
jne 0x140084364
mov r9, rdx
mov rdx, rcx
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, bp
jne 0x140084359
cmp rcx, r8
jbe 0x140084394
cmp word [rcx - 2], bx
je 0x140084394
cmp word [rdx], bx
jne 0x14008438c
add rdx, 2
mov r8, rdx
jmp 0x1400841d1
cmp rdx, r8
jbe 0x1400843a9
lea rax, [rdx - 2]
mov ecx, 0xd
cmp word [rax], cx
cmove rdx, rax
cmp word [r9], bx
jne 0x1400843b3
add r9, 2
sub rdx, r9
sar rdx, 1
mov r8d, edx
mov rdx, r9
jmp 0x140084464
cmp word [rcx], bp
je 0x1400843e2
cmp word [rcx], bx
jne 0x1400843d1
sub r15d, r13d
add rcx, 2
mov qword [rsp + 0x118], rcx
cmp r15d, r13d
jg 0x1400843c4
movzx eax, word [rcx]
movsxd r9, dword [rsp + 0x68]
mov rdx, rcx
mov r8, r9
cmp ax, bp
je 0x14008445b
mov r10d, 0xd
cmp r8, rbp
je 0x140084421
sub r9d, r13d
js 0x14008445b
jmp 0x140084421
cmp ax, r10w
je 0x140084426
cmp ax, bx
je 0x140084426
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, bp
jne 0x140084407
cmp r8, rbp
je 0x140084430
cmp r9d, ebp
je 0x14008445b
cmp r10w, word [rcx]
jne 0x140084442
add rcx, 2
mov qword [rsp + 0x118], rcx
cmp bx, word [rcx]
jne 0x140084453
add rcx, 2
mov qword [rsp + 0x118], rcx
mov ax, word [rcx]
cmp ax, bp
jne 0x1400843fb
sub rcx, rdx
sar rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x128]
call fcn.140058944
mov rcx, r12
mov r8, qword [rsp + 0x128]
mov rdx, rsi
call fcn.14004b578
lea rcx, [rsp + 0x128]
call fcn.140044f24
lea rcx, [rsp + 0x60]
call fcn.140044f24
jmp 0x140084083
lea rcx, [rsp + 0x60]
mov edx, 8
call fcn.14004bc80
xor eax, eax
mov word [rdi], bp
mov qword [rsp + 0xc0], rax
mov rax, qword [0x1400ef2c0]
lea r15, [rsp + 0xb8]
mov qword [rsp + 0xb8], rax
mov al, byte [rsp + 0x128]
lea rcx, [rsp + 0x70]
cmp al, 2
mov rbx, rbp
cmovne r15, rcx
mov qword [rsp + 0x70], rbx
cmp al, 2
je 0x1400845fd
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x70]
mov r9d, 7
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbp
call fcn.1400034e0
cmp qword [r15], rbp
jne 0x140084554
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
mov r13d, eax
cmp rcx, rbp
je 0x140084a3a
cmp rcx, 0xffffffffffffffff
je 0x140084a3a
jmp 0x140084a34
mov rcx, qword [r15]
xor eax, eax
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea r8d, [rax + 3]
mov byte [rsp + 0x58], bpl
mov byte [rsp + 0x59], bpl
mov byte [rsp + 0x5a], bpl
mov word [rsp + 0x5b], ax
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11b, byte [rsp + 0x58]
cmp r11b, 0xff
jne 0x1400845a9
cmp byte [rsp + 0x59], 0xfe
jne 0x1400845e2
mov r12d, 0x4b0
mov ebx, 2
jmp 0x1400845dd
cmp r11b, 0xfe
jne 0x1400845be
cmp byte [rsp + 0x59], 0xff
jne 0x1400845e2
mov r12d, 0x4b1
jmp 0x1400845a2
cmp r11b, 0xef
jne 0x1400845e2
cmp byte [rsp + 0x59], 0xbb
jne 0x1400845e2
cmp byte [rsp + 0x5a], 0xbf
jne 0x1400845e2
mov r12d, 0xfde9
mov ebx, 3
mov qword [rsp + 0x48], r12
mov rcx, qword [r15]
movsxd rdx, ebx
xor r8d, r8d
call fcn.140045f34
cmp eax, ebp
jl 0x14008452e
mov rbx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rsp + 0x40]
cmp al, 3
jne 0x140084720
mov rax, qword [r15]
mov r12b, byte [rsp + 0x128]
mov qword [rsp + 0x78], rbp
mov rbx, rax
mov r14d, ebp
mov rsi, rbp
mov r15d, 0x186a0
lea edx, [r14 + 0x40001]
lea rcx, [rsp + 0x78]
call fcn.14004bd00
mov rdi, qword [rsp + 0x78]
lea r9, [rsp + 0x128]
lea rdx, [rdi + rsi]
mov esi, 0x40000
mov rcx, rbx
mov r8d, esi
mov dword [rsp + 0x128], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, eax
mov eax, dword [rsp + 0x128]
cmp eax, esi
cmova eax, esi
mov dword [rsp + 0x128], eax
cmp eax, ebp
jne 0x1400846ab
cmp r11d, ebp
jne 0x1400846ba
cmp r12b, 2
jne 0x1400846a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400846ba
mov eax, dword [rsp + 0x128]
sub r15d, r13d
js 0x1400846ba
add r14d, eax
movsxd rsi, r14d
mov byte [rdi + rsi], bpl
jmp 0x140084630
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.140054328
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x110]
mov r8, rax
call fcn.14004b578
lea rcx, [rsp + 0x78]
call fcn.140044f24
mov rbx, qword [rsp + 0x70]
cmp rbx, rbp
je 0x140084704
cmp rbx, 0xffffffffffffffff
je 0x140084704
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x98]
call fcn.140044f24
jmp 0x140084a67
cmp al, bpl
je 0x1400847f3
mov rax, qword [rsp + 0x88]
lea rdx, [0x1400d6cc0]
lea rcx, [rsp + 0x88]
cmp rax, rbp
cmovne rdx, rax
or r8d, 0xffffffff
call fcn.140058960
or r14b, r13b
lea rcx, [rsp + 0x48]
call fcn.14004be6c
mov al, byte [rsp + 0x40]
cmp al, bpl
jne 0x140084778
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.14004bfa8
lea rdx, [rsp + 0x48]
mov r9b, r14b
mov r8d, r12d
mov rcx, r15
mov byte [rsp + 0x40], bpl
call fcn.140053f00
cmp byte [rsp + 0x128], 2
mov edi, eax
jne 0x1400847a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400847d1
lea rcx, [rsp + 0x48]
mov edx, r12d
call fcn.140054328
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.14004bfa8
lea rcx, [rsp + 0x48]
call fcn.140044f24
cmp edi, ebp
je 0x1400847db
jmp 0x140084753
lea rcx, [rsp + 0x48]
call fcn.140044f24
lea rcx, [rsp + 0x88]
mov r12d, 0x4b0
call fcn.140044f24
jmp 0x140084a13
mov eax, dword [rsp + 0x90]
cmp eax, ebp
jge 0x140084872
mov sil, byte [rsp + 0x128]
mov edi, ebp
lea rdx, [rsp + 0x50]
mov r9b, r14b
mov r8d, r12d
mov rcx, r15
call fcn.140053f00
mov dword [rsp + 0x128], eax
cmp sil, 2
jne 0x14008483a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084843
mov eax, dword [rsp + 0x128]
cmp eax, ebp
je 0x140084843
add edi, r13d
jmp 0x140084808
lea rcx, [rsp + 0x50]
mov edx, 0x20
mov r12d, 0x4b0
call fcn.14004bd00
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1400d6908]
mov r8d, edi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140084a0b
jne 0x1400848c2
or r14b, r13b
mov rax, rdi
mov rdi, qword [rsp + 0x60]
lea rdx, [rsp + 0x60]
mov r9b, r14b
mov r8d, r12d
mov rcx, r15
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rax
call fcn.140053f00
cmp byte [rsp + 0x128], 2
mov r13d, eax
jne 0x1400848b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140084a13
cmp r13d, ebp
jne 0x140084877
jmp 0x140084a13
cmp eax, r13d
mov r14d, r13d
jle 0x140084921
mov dil, byte [rsp + 0x41]
mov bl, byte [rsp + 0x128]
mov esi, eax
lea rdx, [rsp + 0x50]
mov r9b, dil
mov r8d, r12d
mov rcx, r15
call fcn.140053f00
mov dword [rsp + 0x78], eax
cmp bl, 2
jne 0x140084903
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14008490f
mov eax, dword [rsp + 0x78]
cmp eax, ebp
je 0x14008490f
add r14d, r13d
cmp r14d, esi
jl 0x1400848d8
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov byte [rdi], bpl
cmp dword [rsp + 0x68], r13d
jne 0x140084948
mov r9b, byte [rsp + 0x41]
lea rdx, [rsp + 0x50]
mov r8d, r12d
or r9b, r13b
mov rcx, r15
call fcn.140053f00
jmp 0x140084a13
lea rcx, [rsp + 0x48]
call fcn.14004be6c
movsxd rax, dword [rsp + 0x68]
mov sil, byte [rsp + 0x41]
mov bl, byte [rsp + 0x128]
mov r14, rax
lea rdi, [0x1400d91e8]
cmp r14, rbp
je 0x14008497b
sub eax, r13d
mov dword [rsp + 0x68], eax
js 0x1400849f6
mov rax, qword [rsp + 0x48]
mov r9b, sil
lea rdx, [rsp + 0x48]
or r9b, r13b
mov r8d, r12d
mov rcx, r15
mov word [rax], bp
call fcn.140053f00
mov dword [rsp + 0x128], eax
cmp bl, 2
jne 0x1400849b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1400849f6
mov eax, dword [rsp + 0x128]
cmp eax, ebp
je 0x1400849f6
lea rcx, [rsp + 0x48]
mov edx, r12d
call fcn.140054328
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.14004bfa8
cmp r14, rbp
je 0x1400849e0
cmp dword [rsp + 0x68], ebp
jle 0x1400849f6
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14004bfa8
mov eax, dword [rsp + 0x68]
jmp 0x14008496d
lea rcx, [rsp + 0x48]
mov r12d, 0x4b0
call fcn.140044f24
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
mov edx, r12d
call fcn.140054328
mov r13d, ebp
mov rdi, rax
cmp rbx, rbp
je 0x140084a3a
cmp rbx, 0xffffffffffffffff
je 0x140084a3a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x98]
call fcn.140044f24
mov rcx, qword [rsp + 0x110]
mov r8, rdi
mov rdx, rsi
call fcn.14004b578
mov ebp, r13d
lea rcx, [rsp + 0x50]
call fcn.140044f24
lea rcx, [rsp + 0xb0]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
lea rcx, [rsp + 0xa8]
call fcn.140044f24
mov eax, ebp
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret