Function at 0x140011130
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov rax, qword [0x1400404e0]
mov qword [rsp + 0x40], rax
mov rsi, qword [0x14003e100]
mov qword [rsp + 0x68], rsi
xor r13d, r13d
movzx r14d, r13w
movzx eax, r13w
mov dword [rsp + 0x38], eax
mov ecx, r13d
lea r13, [0x140000000]
nop dword [rax]
movzx eax, byte [rcx + r13 + 0x31370]
mov byte [rbp + rcx - 0x48], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400111b0
mov ecx, 0x10
call qword [sym.imp.mfc120u.dll_Ordinal_1484]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
mov r13d, 0
je 0x140011217
mov word [rax], r13w
mov qword [rax + 8], r13
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x14001121a
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc120u.dll_Ordinal_1484]
mov qword [rbx + 8], rax
lea rdx, [rbp - 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14001121a
mov rbx, r13
mov edx, 0xa
mov rcx, rbx
call fcn.14002ab70
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14001123c
or eax, 0xffffffff
jmp 0x1400121b5
test rbx, rbx
je 0x140011259
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140011250
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
mov word [0x1400419dc], r13w
movzx eax, word [0x1400401b0]
mov word [rsp + 0x30], ax
mov r15d, 0x106
mov rbx, qword [rsp + 0x40]
cmp ax, word [rbx + 0x80]
jge 0x140012118
xor edi, edi
mov ecx, 1
mov word [0x1400401b4], cx
mov word [0x1400401d8], di
movzx r13d, di
mov word [rsp + 0x34], di
mov word [0x14003e118], ax
movsx edx, ax
movzx eax, word [rbx + 0x82]
imul edx, eax
add edx, dword [rbx + 0x28]
mov rcx, qword [0x1400401c8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
inc eax
test eax, 0xfffffffe
jne 0x140011312
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x1400112f8
mov eax, eax
lea rcx, [0x140000000]
mov ecx, dword [rcx + rax*4 + 0x310a0]
jmp 0x1400112fb
mov ecx, r15d
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], 0
cmp ebx, 0xffffffff
je 0x140011234
mov rbx, qword [rsp + 0x40]
movzx r8d, word [rbx + 0x82]
mov rcx, qword [0x1400401c8]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
mov rdx, rsi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140011380
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140011366
mov eax, eax
lea rcx, [0x140000000]
mov ecx, dword [rcx + rax*4 + 0x310a0]
jmp 0x140011369
mov ecx, r15d
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], 0
movzx eax, word [rbx + 0x82]
cmp dword [rsp + 0x4c], eax
jne 0x140011234
movzx r15d, word [0x1400401d8]
add eax, eax
mov dword [rsp + 0x58], eax
movzx r12d, word [0x1400401b4]
cmp r12w, ax
jge 0x1400120da
mov r9, qword [0x14003e110]
nop dword [rax + rax]
movzx eax, r12w
sar ax, 1
movsx ecx, r12w
and ecx, 0x80000001
jge 0x1400113da
dec ecx
or ecx, 0xfffffffe
inc ecx
movsx rax, ax
lea r8, [rax + rsi]
movzx edx, byte [r8]
movzx eax, dl
test ecx, ecx
jne 0x1400113f2
shr al, 4
jmp 0x1400113f4
and al, 0xf
cmp al, 0xd
jae 0x14001203e
test r13w, r13w
jne 0x140012044
test al, al
jne 0x140012025
movsx rax, r15w
cmp rax, 0x100
jae 0x140012105
mov byte [rbp + rax + 0x1b0], r13b
mov word [0x140040008], r15w
lea r9, [rsp + 0x34]
movzx r8d, r12w
mov rdx, qword [0x14003e100]
mov rcx, rbx
call fcn.140006f70
lea r12d, [rax + 1]
movzx ecx, r12w
sar cx, 1
movsx eax, r12w
and eax, 0x80000001
jge 0x140011463
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
movsx rax, cx
movzx ecx, byte [rax + rsi]
jne 0x140011474
shr cl, 4
jmp 0x140011477
and cl, 0xf
movzx r15d, cl
lea eax, [r12 + 1]
mov word [0x1400401b4], ax
mov word [0x1400401d8], r15w
movzx eax, word [rsp + 0x34]
mov word [0x1400401b8], ax
mov rcx, rbx
call fcn.140006e60
cmp ax, 1
jne 0x140011234
lea r8, [rbp + 0x2b0]
lea rdx, [rbp + 0x1b0]
call fcn.1400073e0
movzx esi, word [0x14003dfc4]
cmp r14w, si
jge 0x140011744
mov edi, dword [0x140040004]
nop word [rax + rax]
movsx rbx, r14w
shl rbx, 4
add rbx, qword [0x1400401e8]
mov rdx, qword [rbx]
lea rcx, [rbp + 0x2b0]
call fcn.140007550
movzx ecx, ax
test ax, ax
js 0x14001171c
movzx r9d, word [rbx + 8]
mov word [0x1400402fa], r9w
mov r8d, 0x3fff
mov dword [0x1400402fc], r8d
xor edx, edx
movzx eax, word [rbx + 0xa]
mov word [0x140040300], ax
mov word [0x140040302], dx
test cx, cx
jle 0x1400115c1
mov word [rsp + 0x20], ax
lea rdx, [rbp + 0xe0]
mov rcx, qword [rbx]
call fcn.14000ab90
lea rax, [rbp + 0xe0]
xor ecx, ecx
mov r8d, ecx
cmp byte [rax], cl
jne 0x14001156a
cmp byte [rax + 1], cl
je 0x140011573
add rax, 2
inc r8d
jmp 0x140011561
inc r8w
add r8w, r8w
mov word [0x14003ee54], r8w
lea rcx, [rbp + 0xe0]
mov edx, edi
add rdx, qword [rsp + 0x50]
movzx eax, byte [rcx]
test al, al
jne 0x14001159d
cmp byte [rcx + 1], al
je 0x1400115b0
mov byte [rdx], al
movzx eax, byte [rcx + 1]
mov byte [rdx + 1], al
add rdx, 2
add rcx, 2
jmp 0x140011591
movzx eax, byte [rcx]
mov byte [rdx], al
movzx eax, byte [rcx + 1]
mov byte [rdx + 1], al
jmp 0x14001167b
cmp r9w, word [0x1400402f0]
jne 0x1400115fc
cmp ax, word [0x1400402f6]
jne 0x1400115fc
cmp r8w, word [0x1400402f2]
jne 0x1400115fc
cmp dx, word [0x1400402f4]
jne 0x1400115fc
mov eax, 1
mov word [0x1400419dc], ax
mov dword [rsp + 0x38], eax
jmp 0x140011687
mov word [rsp + 0x20], ax
lea rdx, [rbp + 0xe0]
mov rcx, qword [rbx]
call fcn.14000ab90
lea rax, [rbp + 0xe0]
xor ecx, ecx
mov r8d, ecx
nop dword [rax]
cmp byte [rax], cl
jne 0x140011629
cmp byte [rax + 1], cl
je 0x140011632
add rax, 2
inc r8d
jmp 0x140011620
inc r8w
add r8w, r8w
mov word [0x14003ee54], r8w
lea rax, [rbp + 0xe0]
mov edx, edi
add rdx, qword [rsp + 0x50]
movzx ecx, byte [rax]
test cl, cl
jne 0x14001165c
cmp byte [rax + 1], cl
je 0x14001166f
mov byte [rdx], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 1], cl
add rdx, 2
add rax, 2
jmp 0x140011650
movzx ecx, byte [rax]
mov byte [rdx], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 1], cl
movsx eax, r8w
add edi, eax
mov dword [0x140040004], edi
inc r14w
movsx eax, r14w
imul eax, eax, 0x64
cdq
movsx ecx, si
idiv ecx
mov r8d, eax
mov word [0x14003ee5c], ax
movzx edx, ax
movzx eax, word [0x14003ee44]
mov ecx, edx
sub ecx, eax
cmp ecx, 1
jl 0x140011712
movzx ecx, word [0x14003ee60]
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
mov ecx, edx
sar ecx, 5
mov eax, ecx
shr eax, 0x1f
add ecx, eax
add cx, word [0x14003ee48]
inc word [0x14003ee44]
mov word [0x14003e1a4], r8w
mov word [0x14003ee50], cx
lea rdx, [0x14003e1b0]
call qword [0x140041aa8]
test ax, ax
jne 0x1400120fb
mov edi, dword [0x140040004]
movzx esi, word [0x14003dfc4]
cmp r14w, si
jl 0x1400114e0
mov eax, dword [rsp + 0x38]
test ax, ax
je 0x140011744
xor edi, edi
movzx eax, di
mov dword [rsp + 0x38], eax
mov r9, qword [0x14003e110]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
jmp 0x1400120b8
lea rcx, [rbp + 0x2b0]
lea rdx, [rbp - 0x20]
nop
movzx eax, byte [rcx]
test al, al
jne 0x14001175c
cmp byte [rcx + 1], al
je 0x14001176f
mov byte [rdx], al
movzx eax, byte [rcx + 1]
mov byte [rdx + 1], al
add rdx, 2
add rcx, 2
jmp 0x140011750
movzx eax, byte [rcx]
mov byte [rdx], al
movzx eax, byte [rcx + 1]
mov byte [rdx + 1], al
lea r11, [0x14003c144]
mov rdx, r11
lea rcx, [rbp - 0x20]
nop dword [rax]
cmp byte [rcx], 0
jne 0x14001179b
cmp byte [rcx + 1], 0
je 0x1400117a1
add rcx, 2
jmp 0x140011790
movzx eax, byte [rdx]
test al, al
jne 0x1400117ad
cmp byte [rdx + 1], al
je 0x1400117c0
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x1400117a1
mov word [rcx], 0
movzx edx, word [0x1400402f0]
xor esi, esi
movzx r8d, si
nop dword [rax]
nop word [rax + rax]
movzx ecx, dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
add cl, 0x30
movsx rax, r8w
mov byte [rsp + rax + 0x78], cl
inc r8w
test dx, dx
jne 0x1400117e0
movsx rax, r8w
mov byte [rsp + rax + 0x78], sil
movzx r10d, si
mov r9d, esi
lea rcx, [rsp + 0x78]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x14001183b
nop dword [rax]
inc rcx
inc r9d
cmp byte [rcx], sil
jne 0x140011830
dec r9w
cmp si, r9w
jge 0x140011887
nop word [rax + rax]
movsx rax, r10w
lea rdx, [rsp + 0x78]
add rdx, rax
movzx r8d, byte [rdx]
movsx rax, r9w
lea rcx, [rsp + 0x78]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
inc r10w
dec r9w
cmp r10w, r9w
jl 0x140011850
movzx eax, byte [rsp + 0x78]
lea rdx, [rbp - 0x70]
lea r8, [rsp + 0x78]
test al, al
je 0x1400118d3
lea rsi, [0x140000000]
nop dword [rax + rax]
cmp al, 0x7f
ja 0x1400118a9
movzx ecx, al
jmp 0x1400118bf
cmp al, 0xfe
ja 0x1400118ba
movzx eax, al
movzx ecx, word [rsi + rax*2 + 0x30350]
jmp 0x1400118bf
mov ecx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8
movzx eax, byte [r8]
test al, al
jne 0x1400118a0
xor esi, esi
mov word [rdx], si
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
nop
cmp byte [rcx], 0
jne 0x1400118eb
cmp byte [rcx + 1], 0
je 0x1400118f1
add rcx, 2
jmp 0x1400118e0
movzx eax, byte [rdx]
test al, al
jne 0x1400118fd
cmp byte [rdx + 1], al
je 0x140011910
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x1400118f1
mov word [rcx], 0
mov rdx, r11
lea rcx, [rbp - 0x20]
nop dword [rax]
cmp byte [rcx], 0
jne 0x14001192b
cmp byte [rcx + 1], 0
je 0x140011931
add rcx, 2
jmp 0x140011920
movzx eax, byte [rdx]
test al, al
jne 0x14001193d
cmp byte [rdx + 1], al
je 0x140011950
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011931
mov word [rcx], 0
movzx edx, word [0x1400402f2]
movzx r8d, si
movzx ecx, dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
add cl, 0x30
movsx rax, r8w
mov byte [rsp + rax + 0x78], cl
inc r8w
test dx, dx
jne 0x140011960
movsx rax, r8w
mov byte [rsp + rax + 0x78], dl
movzx r10d, si
mov r9d, esi
lea rcx, [rsp + 0x78]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x1400119bb
nop dword [rax]
inc rcx
inc r9d
cmp byte [rcx], 0
jne 0x1400119b0
dec r9w
cmp si, r9w
jge 0x140011a07
nop word [rax + rax]
movsx rax, r10w
lea rdx, [rsp + 0x78]
add rdx, rax
movzx r8d, byte [rdx]
movsx rax, r9w
lea rcx, [rsp + 0x78]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
inc r10w
dec r9w
cmp r10w, r9w
jl 0x1400119d0
movzx eax, byte [rsp + 0x78]
lea rdx, [rbp - 0x70]
lea r8, [rsp + 0x78]
test al, al
je 0x140011a53
lea rsi, [0x140000000]
nop dword [rax + rax]
cmp al, 0x7f
ja 0x140011a29
movzx ecx, al
jmp 0x140011a3f
cmp al, 0xfe
ja 0x140011a3a
movzx eax, al
movzx ecx, word [rsi + rax*2 + 0x30350]
jmp 0x140011a3f
mov ecx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140011a20
xor esi, esi
mov word [rdx], si
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
nop
cmp byte [rcx], 0
jne 0x140011a6b
cmp byte [rcx + 1], 0
je 0x140011a71
add rcx, 2
jmp 0x140011a60
movzx eax, byte [rdx]
test al, al
jne 0x140011a7d
cmp byte [rdx + 1], al
je 0x140011a90
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011a71
mov word [rcx], 0
mov rdx, r11
lea rcx, [rbp - 0x20]
nop dword [rax]
cmp byte [rcx], 0
jne 0x140011aab
cmp byte [rcx + 1], 0
je 0x140011ab1
add rcx, 2
jmp 0x140011aa0
movzx eax, byte [rdx]
test al, al
jne 0x140011abd
cmp byte [rdx + 1], al
je 0x140011ad0
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011ab1
mov word [rcx], 0
movzx edx, word [0x1400402f4]
movzx r8d, si
movzx ecx, dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
add cl, 0x30
movsx rax, r8w
mov byte [rsp + rax + 0x78], cl
inc r8w
test dx, dx
jne 0x140011ae0
movsx rax, r8w
mov byte [rsp + rax + 0x78], dl
movzx r10d, si
mov r9d, esi
lea rcx, [rsp + 0x78]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x140011b3b
nop dword [rax]
inc rcx
inc r9d
cmp byte [rcx], 0
jne 0x140011b30
dec r9w
cmp si, r9w
jge 0x140011b87
nop word [rax + rax]
movsx rax, r10w
lea rdx, [rsp + 0x78]
add rdx, rax
movzx r8d, byte [rdx]
movsx rax, r9w
lea rcx, [rsp + 0x78]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
inc r10w
dec r9w
cmp r10w, r9w
jl 0x140011b50
movzx eax, byte [rsp + 0x78]
lea rdx, [rbp - 0x70]
lea r8, [rsp + 0x78]
test al, al
je 0x140011bd3
lea rsi, [0x140000000]
nop dword [rax + rax]
cmp al, 0x7f
ja 0x140011ba9
movzx ecx, al
jmp 0x140011bbf
cmp al, 0xfe
ja 0x140011bba
movzx eax, al
movzx ecx, word [rsi + rax*2 + 0x30350]
jmp 0x140011bbf
mov ecx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140011ba0
xor esi, esi
mov word [rdx], si
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
nop
cmp byte [rcx], 0
jne 0x140011beb
cmp byte [rcx + 1], 0
je 0x140011bf1
add rcx, 2
jmp 0x140011be0
movzx eax, byte [rdx]
test al, al
jne 0x140011bfd
cmp byte [rdx + 1], al
je 0x140011c10
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011bf1
mov word [rcx], 0
mov rdx, r11
lea rcx, [rbp - 0x20]
nop dword [rax]
cmp byte [rcx], 0
jne 0x140011c2b
cmp byte [rcx + 1], 0
je 0x140011c31
add rcx, 2
jmp 0x140011c20
movzx eax, byte [rdx]
test al, al
jne 0x140011c3d
cmp byte [rdx + 1], al
je 0x140011c50
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011c31
mov word [rcx], 0
movzx edx, word [0x1400402f6]
movzx r8d, si
movzx ecx, dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
add cl, 0x30
movsx rax, r8w
mov byte [rsp + rax + 0x78], cl
inc r8w
test dx, dx
jne 0x140011c60
movsx rax, r8w
mov byte [rsp + rax + 0x78], dl
movzx r10d, si
mov r9d, esi
lea rcx, [rsp + 0x78]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x140011cbb
nop dword [rax]
inc rcx
inc r9d
cmp byte [rcx], 0
jne 0x140011cb0
dec r9w
cmp si, r9w
jge 0x140011d07
nop word [rax + rax]
movsx rax, r10w
lea rdx, [rsp + 0x78]
add rdx, rax
movzx r8d, byte [rdx]
movsx rax, r9w
lea rcx, [rsp + 0x78]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
inc r10w
dec r9w
cmp r10w, r9w
jl 0x140011cd0
movzx eax, byte [rsp + 0x78]
lea rdx, [rbp - 0x70]
lea r8, [rsp + 0x78]
test al, al
je 0x140011d53
lea rsi, [0x140000000]
nop dword [rax + rax]
cmp al, 0x7f
ja 0x140011d29
movzx ecx, al
jmp 0x140011d3f
cmp al, 0xfe
ja 0x140011d3a
movzx eax, al
movzx ecx, word [rsi + rax*2 + 0x30350]
jmp 0x140011d3f
mov ecx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140011d20
xor esi, esi
mov word [rdx], si
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
nop
cmp byte [rcx], 0
jne 0x140011d6b
cmp byte [rcx + 1], 0
je 0x140011d71
add rcx, 2
jmp 0x140011d60
movzx eax, byte [rdx]
test al, al
jne 0x140011d7d
cmp byte [rdx + 1], al
je 0x140011d90
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011d71
mov word [rcx], 0
mov rdx, r11
lea rcx, [rbp - 0x20]
nop dword [rax]
cmp byte [rcx], 0
jne 0x140011dab
cmp byte [rcx + 1], 0
je 0x140011db1
add rcx, 2
jmp 0x140011da0
movzx eax, byte [rdx]
test al, al
jne 0x140011dbd
cmp byte [rdx + 1], al
je 0x140011dd0
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011db1
mov word [rcx], 0
movzx edx, word [0x1400402f8]
movzx r8d, si
movzx ecx, dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
add cl, 0x30
movsx rax, r8w
mov byte [rsp + rax + 0x78], cl
inc r8w
test dx, dx
jne 0x140011de0
movsx rax, r8w
mov byte [rsp + rax + 0x78], dl
movzx r10d, si
mov r9d, esi
lea rcx, [rsp + 0x78]
movzx eax, byte [rsp + 0x78]
test al, al
je 0x140011e3b
nop dword [rax]
inc rcx
inc r9d
cmp byte [rcx], 0
jne 0x140011e30
dec r9w
cmp si, r9w
jge 0x140011e87
nop word [rax + rax]
movsx rax, r10w
lea rdx, [rsp + 0x78]
add rdx, rax
movzx r8d, byte [rdx]
movsx rax, r9w
lea rcx, [rsp + 0x78]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
inc r10w
dec r9w
cmp r10w, r9w
jl 0x140011e50
movzx eax, byte [rsp + 0x78]
lea rdx, [rbp - 0x70]
lea r8, [rsp + 0x78]
test al, al
je 0x140011ed3
lea rsi, [0x140000000]
nop dword [rax + rax]
cmp al, 0x7f
ja 0x140011ea9
movzx ecx, al
jmp 0x140011ebf
cmp al, 0xfe
ja 0x140011eba
movzx eax, al
movzx ecx, word [rsi + rax*2 + 0x30350]
jmp 0x140011ebf
mov ecx, 0x20
mov word [rdx], cx
add rdx, 2
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140011ea0
xor esi, esi
mov word [rdx], si
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
nop
cmp byte [rcx], 0
jne 0x140011eeb
cmp byte [rcx + 1], 0
je 0x140011ef1
add rcx, 2
jmp 0x140011ee0
movzx eax, byte [rdx]
test al, al
jne 0x140011efd
cmp byte [rdx + 1], al
je 0x140011f10
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011ef1
mov word [rcx], 0
lea rdx, [0x14003c088]
lea rcx, [rbp - 0x20]
cmp byte [rcx], 0
jne 0x140011f2b
cmp byte [rcx + 1], 0
je 0x140011f31
add rcx, 2
jmp 0x140011f20
movzx eax, byte [rdx]
test al, al
jne 0x140011f3d
cmp byte [rdx + 1], al
je 0x140011f50
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
add rcx, 2
add rdx, 2
jmp 0x140011f31
mov word [rcx], 0
lea rax, [rbp - 0x20]
mov ecx, esi
nop dword [rax + rax]
cmp byte [rax], 0
jne 0x140011f6b
cmp byte [rax + 1], 0
je 0x140011f73
add rax, 2
inc ecx
jmp 0x140011f60
lea edi, [rcx + rcx]
mov rcx, rsi
movsxd rbx, edi
test edi, edi
jle 0x140011f8c
not byte [rbp + rcx - 0x20]
inc rcx
cmp rcx, rbx
jl 0x140011f80
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, edi
lea rdx, [rbp - 0x20]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140011fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140011fcc
mov eax, eax
lea rcx, [0x140000000]
mov ecx, dword [rcx + rax*4 + 0x310a0]
jmp 0x140011fd1
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], 0
mov rcx, rsi
test edi, edi
jle 0x140012003
nop
movzx eax, byte [rbp + rcx - 0x20]
not al
mov byte [rbp + rcx - 0x20], al
inc rcx
cmp rcx, rbx
jl 0x140011ff0
cmp dword [rsp + 0x48], edi
jne 0x140011234
mov r9, qword [0x14003e110]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x40]
xor edi, edi
jmp 0x1400120b8
movsx rdx, r15w
movzx eax, al
movzx ecx, byte [rax + r9]
mov byte [rbp + rdx + 0x1b0], cl
inc r15w
jmp 0x1400120b8
test r13w, r13w
je 0x1400120b4
cmp r13w, 0xd
jne 0x140012054
movzx eax, al
add ax, r13w
jmp 0x140012097
cmp r13w, 0xe
jne 0x140012064
movzx eax, al
add ax, 0x1d
jmp 0x140012097
cmp r13w, 0xf
jne 0x1400120af
test ecx, ecx
je 0x140012082
movzx ecx, byte [r8 + 1]
shr cl, 4
movzx eax, dl
shl al, 4
movzx edx, cl
or dl, al
inc r12w
movzx eax, dl
add ax, 0x2d
mov ecx, 0xff
cmp ax, cx
jge 0x1400120c9
movsx rax, ax
movsx rdx, r15w
movzx ecx, byte [rax + r9]
mov byte [rbp + rdx + 0x1b0], cl
inc r15w
mov r13d, edi
jmp 0x1400120b8
movzx r13d, al
inc r12w
cmp r12w, word [rsp + 0x58]
jge 0x1400120da
jmp 0x1400113c0
movzx eax, word [rbx + 0x82]
add ax, ax
mov word [0x1400401b4], ax
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
mov r15d, 0x106
cmp ax, word [rbx + 0x80]
jge 0x14001210b
jmp 0x140011287
mov eax, 0xfffffffc
jmp 0x1400121b5
call fcn.14002cbc8
int3
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
xor r13d, r13d
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001213d
mov qword [r12], r13
mov rcx, r12
call fcn.14002a950
mov rcx, r12
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
jmp 0x140012171
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140012159
mov eax, eax
lea rcx, [0x140000000]
mov r15d, dword [rcx + rax*4 + 0x310a0]
mov dword [0x1400430b8], r15d
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], 0
lea rdx, [0x1400419e0]
mov r8d, dword [0x140040004]
add r8, rdi
movzx eax, byte [rdx]
test al, al
jne 0x14001218e
cmp byte [rdx + 1], al
je 0x1400121a3
mov byte [r8], al
movzx eax, byte [rdx + 1]
mov byte [r8 + 1], al
add r8, 2
add rdx, 2
jmp 0x140012182
movzx ecx, byte [rdx]
mov byte [r8], cl
movzx ecx, byte [rdx + 1]
mov byte [r8 + 1], cl
movzx eax, r13w
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret