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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r15, rcx
lea rcx, [rax - 0x68]
call fcn.14004be6c
lea rcx, [rsp + 0x138]
xor esi, esi
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], rsi
call fcn.140044ef4
lea rcx, [rsp + 0x98]
call fcn.14004be6c
lea rcx, [rsp + 0x80]
call fcn.14004be6c
lea rcx, [rsp + 0xa8]
call fcn.14004be6c
lea rcx, [rsp + 0x88]
call fcn.14004be6c
mov r11, qword [rsp + 0x138]
lea r13d, [rsi + 1]
lea r8d, [rsi + 0x2c]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov r9b, r13b
mov qword [rsp + 0x58], r11
call fcn.14005add0
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rbx, qword [rsp + 0x98]
mov byte [rsp + 0x52], sil
movzx eax, word [rbx]
mov byte [rsp + 0x40], sil
mov rcx, rbx
mov rdi, rsi
lea ebp, [rsi + 0x20]
lea r14d, [rsi + 9]
cmp ax, si
je 0x140074900
cmp r14w, ax
ja 0x1400748e0
cmp ax, 0xd
jbe 0x1400748e5
cmp bp, ax
jne 0x1400748e8
mov rdi, rcx
add rcx, 2
mov ax, word [rcx]
cmp ax, si
jne 0x1400748d4
cmp rdi, rsi
je 0x140074900
mov word [rdi], si
add rdi, 2
mov rax, rbx
mov qword [rsp + 0x138], rbx
mov r12d, 0x2a
cmp rdi, rsi
je 0x1400749dc
cmp r12w, word [rbx]
jne 0x1400749dc
lea r15d, [r12 + 3]
cmp r15w, word [rax + 2]
je 0x1400749d4
lea rdx, [rsp + 0x138]
lea rcx, str.nobom
mov r8d, 6
call fcn.14004e558
cmp al, sil
je 0x14007495a
mov byte [rsp + 0x40], r13b
jmp 0x1400749c2
lea rdx, [rsp + 0x138]
lea rcx, str.transonly
mov r8d, 0xa
call fcn.14004e558
cmp al, sil
je 0x140074980
mov byte [rsp + 0x52], r13b
jmp 0x1400749c2
mov rcx, qword [rsp + 0x138]
movzx eax, word [rcx]
cmp ax, si
je 0x1400749b5
cmp r14w, ax
ja 0x14007499c
cmp ax, 0xd
jbe 0x1400749ad
cmp bp, ax
je 0x1400749ad
add rcx, 2
mov ax, word [rcx]
cmp ax, si
jne 0x140074990
mov qword [rsp + 0x138], rcx
lea rcx, [rsp + 0x138]
call fcn.140044ef4
mov rax, qword [rsp + 0x138]
cmp r12w, word [rax]
je 0x140074929
mov r15, qword [rsp + 0x130]
mov r12b, sil
mov byte [rsp + 0x51], sil
mov byte [rsp + 0x138], sil
mov r14b, sil
mov byte [rsp + 0x148], sil
cmp rdi, rsi
je 0x140074a28
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.140058920
mov r11, qword [rsp + 0x78]
mov qword [rsp + 0x78], rbx
mov rbx, r11
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x98], rbx
call fcn.140044f24
mov rax, qword [rsp + 0x58]
mov edi, 0x2c
lea rcx, [rax + 2]
mov qword [rsp + 0xb0], rcx
cmp di, word [rax]
jne 0x140074af3
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov r8d, edi
mov r9b, r13b
call fcn.14005add0
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rax
call fcn.14004f6fc
mov rax, qword [rsp + 0x58]
cmp di, word [rax]
jne 0x140074af3
add rax, 2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov r8d, edi
mov r9b, r13b
mov qword [rsp + 0x58], rax
call fcn.14005add0
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rax, qword [rsp + 0x58]
cmp di, word [rax]
jne 0x140074af3
add rax, 2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov r8d, edi
mov r9b, r13b
mov qword [rsp + 0x58], rax
call fcn.14005add0
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
xor r11d, r11d
cmp word [rbx], r11w
je 0x140075928
mov rbp, qword [rsp + 0x80]
cmp word [rbp], r11w
je 0x140075928
mov r9, qword [rsp + 0xa8]
cmp word [r9], r11w
je 0x140075928
mov rsi, qword [rsp + 0x88]
cmp word [rsi], r11w
je 0x140075928
lea ecx, [r11 + 3]
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x68], r11d
lea eax, [rcx + 0x27]
mov dword [rsp + 0x78], r11d
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0xa0], r11d
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x6c], r11d
mov r10, r11
mov byte [rsp + 0x50], r11b
cmp ax, word [rbx]
jne 0x140074ba9
cmp ax, word [rbx + 2]
jne 0x140074b98
mov dil, byte [rbx]
add rbx, 4
mov byte [rsp + 0x51], 2
mov r12b, dil
cmp ax, word [rbx]
jne 0x140074bac
add rbx, 2
mov byte [rsp + 0x51], cl
jmp 0x140074bac
cmp ax, word [rbx]
jne 0x140074ba9
mov dil, byte [rbx]
add rbx, 2
mov r12b, dil
jmp 0x140074bac
mov dil, r10b
mov eax, 0x2d
cmp ax, word [rbx]
jne 0x140074bbd
mov r12b, byte [rbx]
add rbx, 2
cmp r12b, r11b
jne 0x140074c0d
lea rcx, [rsp + 0x88]
call fcn.140044f24
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
lea rcx, [rsp + 0x98]
call fcn.140044f24
lea rcx, [rsp + 0xc0]
call fcn.140044f24
mov eax, 0x80070057
jmp 0x14007596c
lea rcx, [0x1400df98c]
mov rdx, rbx
call fcn.140045ff4
mov r12d, 0x4b1
cmp al, r11b
je 0x140074c31
mov byte [rsp + 0x50], r13b
jmp 0x140074d6b
lea rcx, str.ANSI
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074c4f
mov dword [rsp + 0x78], r11d
jmp 0x140074d6b
lea rcx, [0x1400df988]
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074c70
mov dword [rsp + 0x78], 0x3a8
jmp 0x140074d6b
lea rcx, str.BIG5
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074c91
mov dword [rsp + 0x78], 0x3b6
jmp 0x140074d6b
lea rcx, str.UTF8
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074cb2
mov dword [rsp + 0x78], 0xfde9
jmp 0x140074d6b
lea rcx, str.UTF7
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074cd3
mov dword [rsp + 0x78], 0xfde8
jmp 0x140074d6b
lea rcx, str.UNICODE
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
jne 0x140074cfb
lea rcx, [0x1400d7338]
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074d05
mov dword [rsp + 0x60], 0x4b0
jmp 0x140074d6b
lea rcx, str.UNICODEB
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
jne 0x140074d2d
lea rcx, str.UNIB
mov rdx, rbx
call fcn.140045ff4
cmp al, r11b
je 0x140074d34
mov dword [rsp + 0x60], r12d
jmp 0x140074d6b
movzx eax, word [rbx]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x140074d54
mov rcx, rbx
call fcn.14004cfc0
mov qword [rsp + 0x78], rax
jmp 0x140074d6b
cmp word [rbx], r11w
jne 0x140074bc2
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0xa0], r13d
mov r12d, 0x2a
cmp r12w, word [r9]
jne 0x140074da5
cmp r12w, word [r9 + 2]
jne 0x140074d8e
mov al, byte [r9]
add r9, 4
mov byte [rsp + 0x148], al
jmp 0x140074d9b
cmp r12w, word [r9]
jne 0x140074da5
mov al, byte [r9]
add r9, 2
mov r14b, al
mov byte [rsp + 0x138], al
mov eax, 0x2d
cmp ax, word [r9]
jne 0x140074db7
mov r14b, byte [r9]
add r9, 2
cmp r14b, r11b
je 0x140074bc2
lea rcx, str.ANSI
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074dde
mov dword [rsp + 0x54], r11d
jmp 0x140074f22
lea rcx, [0x1400df988]
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074dff
mov dword [rsp + 0x54], 0x3a8
jmp 0x140074f22
lea rcx, str.BIG5
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074e20
mov dword [rsp + 0x54], 0x3b6
jmp 0x140074f22
lea rcx, str.UTF8
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074e50
mov dword [rsp + 0x54], 0xfde9
lea r10, [0x1400dc170]
mov dword [rsp + 0x6c], 3
jmp 0x140074f22
lea rcx, str.UTF7
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074e71
mov dword [rsp + 0x54], 0xfde8
jmp 0x140074f22
lea rcx, str.UNICODE
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
jne 0x140074e99
lea rcx, [0x1400d7338]
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074eaa
mov dword [rsp + 0x68], 0x4b0
lea r10, [0x1400dc168]
jmp 0x140074ee1
lea rcx, str.UNICODEB
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
jne 0x140074ed2
lea rcx, str.UNIB
mov rdx, r9
call fcn.140045ff4
cmp al, r11b
je 0x140074eeb
mov dword [rsp + 0x68], 0x4b1
lea r10, [0x1400dc16c]
mov dword [rsp + 0x6c], 2
jmp 0x140074f22
movzx eax, word [r9]
mov ecx, 9
sub ax, 0x30
cmp ax, cx
ja 0x140074f0b
mov rcx, r9
call fcn.14004cfc0
mov dword [rsp + 0x54], eax
jmp 0x140074f22
cmp word [r9], r11w
jne 0x140075922
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x90], r13d
cmp byte [rsp + 0x40], r11b
mov rbx, r11
lea rcx, [rsp + 0x48]
cmovne r10, r11
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], r10
call fcn.14004bc1c
xor r14d, r14d
mov r12d, r14d
cmp dil, r14b
jne 0x1400751ff
mov rax, qword [rsp + 0xb0]
lea r8d, [r14 + 0x2c]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov r9b, r13b
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0x58], rax
call fcn.14005add0
lea rdx, [rsp + 0x80]
mov rcx, rax
xor r8d, r8d
call fcn.14004f5d4
mov rbp, qword [rsp + 0x80]
mov rcx, rbp
call fcn.140015cb4
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x80
lea r9d, [r14 + 7]
lea rcx, [rsp + 0xb8]
mov r8d, 0x80000000
mov rdx, rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
call fcn.1400034e0
mov rdi, qword [rsp + 0xb8]
cmp rdi, r14
jne 0x140074ff8
lea rcx, [rsp + 0x48]
call fcn.140044f24
jmp 0x140075928
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140045f34
mov r8d, r13d
xor edx, edx
mov rcx, rdi
call fcn.140045f34
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r12, rax
mov qword [rsp + 0xb8], rax
call fcn.140045f34
lea edx, [r12 + 0xa]
lea rcx, [rsp + 0x48]
call fcn.14004bd00
mov r11, qword [rsp + 0x48]
lea r9, [rsp + 0xb0]
mov byte [r11 + 2], r14b
mov rcx, qword [rsp + 0x48]
mov r8d, r12d
mov byte [rcx + 1], r14b
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r14
mov byte [rcx], r14b
mov r15, qword [rsp + 0x48]
or dword [rsp + 0xb0], 0xffffffff
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r12, dword [rsp + 0xb0]
cmp r12d, r14d
jge 0x1400750a2
cmp rdi, 0xffffffffffffffff
je 0x140074fe9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140074fe9
mov rax, qword [rsp + 0x48]
mov r10b, byte [rsp + 0x50]
mov r9d, dword [rsp + 0x60]
mov byte [r12 + rax + 2], r14b
mov rax, qword [rsp + 0x48]
xor r11d, r11d
mov byte [r12 + rax + 1], r14b
mov rax, qword [rsp + 0x48]
mov byte [r12 + rax], r14b
cmp r10b, r11b
jne 0x1400750da
cmp r9d, 0x4b0
jne 0x140075109
lea rdx, [0x1400dc168]
mov r8d, 2
mov rcx, r15
call fcn.140044f54
cmp eax, r11d
jne 0x140075104
mov dword [rsp + 0x60], 0x4b0
mov r14d, 2
jmp 0x14007516d
cmp r10b, r11b
jne 0x140075112
cmp r9d, 0x4b1
jne 0x14007513b
lea rdx, [0x1400dc16c]
mov r8d, 2
mov rcx, r15
call fcn.140044f54
cmp eax, r11d
jne 0x140075136
mov dword [rsp + 0x60], 0x4b1
jmp 0x1400750fc
cmp r10b, r11b
jne 0x140075145
cmp dword [rsp + 0x78], 0xfde9
jne 0x14007518b
lea rdx, [0x1400dc170]
mov r8d, 3
mov rcx, r15
call fcn.140044f54
cmp eax, r11d
jne 0x14007518b
mov dword [rsp + 0x78], 0xfde9
mov r14d, 3
mov r8, qword [rsp + 0xb8]
movsxd rax, r14d
mov rcx, r15
sub r8, rax
lea rdx, [rax + r15]
add r8, 3
call fcn.1400177b0
sub r12d, r14d
mov r14, rbx
cmovs r12d, r14d
cmp rdi, 0xffffffffffffffff
je 0x1400751a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, bl
cmp r12d, r14d
jl 0x140074fe9
cmp byte [rsp + 0x50], r14b
je 0x140075387
cmp dil, r14b
je 0x140075387
mov edi, r14d
mov r14, qword [rsp + 0x48]
lea rdx, [0x1400dc168]
mov rcx, r14
mov r8d, 2
call fcn.140044f54
xor r15d, r15d
cmp eax, r15d
jne 0x140075311
mov dword [rsp + 0x60], 0x4b0
mov edi, 2
jmp 0x140075360
mov dil, byte [rsp + 0x51]
cmp dil, r14b
je 0x1400752ca
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, r15
call fcn.1400035d0
mov rbp, qword [rsp + 0x80]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r15
mov rdx, rbp
call fcn.140012bb4
lea rcx, [rsp + 0x48]
mov r14, rax
xor eax, eax
lea r15d, [rax + 8]
cmp r14, rax
je 0x1400752a5
cmp dil, 3
jne 0x140075264
mov rdx, qword [r14 + 8]
call fcn.14005e930
mov dil, 2
mov r12d, eax
jmp 0x1400752b0
mov r12d, dword [r14 + 0x18]
and r12d, 0x3fffffff
lea edx, [r12 + 8]
call fcn.14004bd00
mov rax, qword [rsp + 0x48]
movsxd rdi, r12d
lea rcx, [rdi + rax]
mov r8, r15
xor edx, edx
call fcn.1400b93b0
mov rdx, qword [r14 + 8]
mov rcx, qword [rsp + 0x48]
mov r8, rdi
call fcn.1400177f8
mov dil, r13b
jmp 0x1400752b0
mov edx, r15d
call fcn.14004bd00
mov dil, bl
movsxd rcx, r12d
mov r8, r15
xor edx, edx
add rcx, qword [rsp + 0x48]
call fcn.1400b93b0
xor r14d, r14d
jmp 0x1400751a7
mov rdx, rbp
lea rcx, [rsp + 0x48]
cmp dword [rsp + 0xa0], r14d
je 0x140075301
call fcn.140058a38
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x48]
mov r12d, eax
add r12d, r12d
lea edx, [r12 + 8]
call fcn.14004bd00
jmp 0x140075309
call fcn.14005e930
mov r12d, eax
mov dil, 2
jmp 0x1400751a7
lea rdx, [0x1400dc16c]
mov r8d, 2
mov rcx, r14
call fcn.140044f54
cmp eax, r15d
jne 0x140075338
mov dword [rsp + 0x60], 0x4b1
jmp 0x1400751f5
mov r9d, 3
lea rdx, [0x1400dc170]
mov rcx, r14
mov r8d, r9d
call fcn.140044f54
cmp eax, r15d
jne 0x14007537e
mov dword [rsp + 0x78], 0xfde9
mov edi, r9d
mov eax, r12d
movsxd rdx, edi
mov rcx, r14
sub eax, edi
add rdx, r14
add eax, 4
movsxd r8, eax
call fcn.1400177b0
mov r14, qword [rsp + 0x48]
sub r12d, edi
cmovs r12d, r15d
jmp 0x14007538c
mov r14, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov r15, r14
call fcn.14004be6c
lea rcx, [rsp + 0x54]
call fcn.14004b91c
mov rdi, qword [rsp + 0x78]
cmp dword [rax], edi
jne 0x14007547f
lea rcx, [rsp + 0x68]
call fcn.14004b91c
mov ecx, dword [rsp + 0x60]
cmp dword [rax], ecx
jne 0x14007547f
cmp byte [rsp + 0x148], bl
je 0x1400753fa
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
lea rax, [rsp + 0x88]
mov r9d, r12d
mov rdx, rsi
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rax
call fcn.14005e494
jmp 0x140075463
cmp byte [rsp + 0x138], bl
jne 0x140075422
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x130]
mov r8d, r12d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140075463
cmp dword [rsp + 0x90], ebx
jne 0x140075444
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov r8d, r12d
call fcn.140051154
mov r8, qword [rsp + 0x58]
jmp 0x140075453
mov r8, rbp
cmp dword [rsp + 0xa0], ebx
jne 0x140075453
mov r8, r14
mov rcx, qword [rsp + 0x130]
mov rdx, rsi
call fcn.14004b578
lea rcx, [rsp + 0x58]
call fcn.140044f24
lea rcx, [rsp + 0x48]
call fcn.140044f24
mov r13d, ebx
jmp 0x140075928
mov ebp, dword [rsp + 0x60]
cmp ebp, 0x4b1
jne 0x1400754a1
mov rcx, qword [rsp + 0x48]
mov edx, r12d
mov ebp, 0x4b0
call fcn.140049c9c
and r12d, 0xfffffffe
xor eax, eax
cmp byte [rsp + 0x138], al
jne 0x140075508
mov rcx, rsi
call fcn.140015cb4
xor ecx, ecx
mov r8d, 0x40000000
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x80
lea r9d, [rcx + 7]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0xd8]
mov rdx, rax
call fcn.1400034e0
mov rbx, qword [rsp + 0xd8]
xor eax, eax
cmp rbx, rax
jne 0x140075508
lea rcx, [rsp + 0x58]
call fcn.140044f24
jmp 0x140074fe9
xor r13d, r13d
mov eax, 0x3a8
mov qword [rsp + 0x60], r13
cmp dword [rsp + 0x54], eax
jne 0x140075523
cmp edi, 0x3b6
je 0x140075539
cmp edi, eax
jne 0x1400755f5
cmp dword [rsp + 0x54], 0x3b6
jne 0x1400755f5
movzx eax, byte [rsp + 0x52]
lea rcx, [rsp + 0xa0]
mov edi, eax
cmp al, r13b
mov eax, 3
cmovne edi, eax
call fcn.14004bc1c
cmp dword [rsp + 0x54], 0x3b6
mov rcx, qword [rsp + 0x48]
mov r8d, r13d
lea rdx, [rsp + 0xa0]
sete r8b
call fcn.140051228
mov r11, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0xa0], r11
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14, qword [rsp + 0x48]
mov r12d, eax
mov eax, 3
cmp dil, al
jne 0x1400755e8
cmp byte [rsp + 0x138], r13b
jne 0x1400755e8
cmp r12d, r13d
jle 0x1400755d6
lea r9, [rsp + 0x130]
mov r8d, r12d
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0xa0]
call fcn.140044f24
jmp 0x14007589d
lea rcx, [rsp + 0xa0]
call fcn.140044f24
movsxd rdi, r12d
shr rdi, 1
cmp ebp, r13d
jne 0x14007564a
lea edi, [r12 + 0xa]
lea rcx, [rsp + 0x58]
lea edx, [rdi + 0xa]
call fcn.14004bf70
mov r14, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x78]
mov r9d, r12d
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
call qword [0x1400f18d0]
cmp eax, r13d
mov r15, r14
cmovl eax, r13d
movsxd rdi, eax
lea r12d, [rdi + rdi]
mov word [r14 + rdi*2], r13w
mov eax, dword [rsp + 0x68]
cmp eax, 0x4b1
jne 0x140075664
mov edx, r12d
mov rcx, r14
call fcn.140049c9c
mov eax, dword [rsp + 0x68]
cmp eax, r13d
jle 0x14007578e
cmp byte [rsp + 0x148], r13b
je 0x1400756de
mov rcx, qword [rsp + 0x130]
lea rax, [rsp + 0x88]
mov r9d, r12d
mov r8, r14
mov rdx, rsi
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], rax
call fcn.14005e494
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x58]
call fcn.140044f24
lea rcx, [rsp + 0x48]
call fcn.140044f24
cmp rbx, r13
je 0x140075928
cmp rbx, 0xffffffffffffffff
je 0x140075928
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140075928
cmp byte [rsp + 0x138], r13b
jne 0x14007573a
cmp r12d, r13d
jle 0x14007589d
mov rdx, qword [rsp + 0xe0]
cmp rdx, r13
je 0x140075719
mov r8d, dword [rsp + 0x6c]
lea r9, [rsp + 0x130]
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, r12d
mov rdx, r14
lea r9, [rsp + 0x130]
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14007589d
cmp dword [rsp + 0x90], r13d
jne 0x140075798
lea rcx, [rsp + 0x138]
call fcn.14004be6c
lea rcx, [rsp + 0x138]
mov r8d, edi
mov rdx, r14
call fcn.1400511ec
mov r8, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov rdx, rsi
call fcn.14004b578
lea rcx, [rsp + 0x138]
call fcn.140044f24
jmp 0x14007589d
cmp dword [rsp + 0x90], r13d
je 0x1400757a0
mov r8, r15
jmp 0x14007588d
movsxd rbp, r12d
lea rcx, [rsp + 0x60]
shr rbp, 1
lea eax, [rbp + rbp*2]
lea edi, [rax + rax + 0xa]
lea edx, [rdi + 1]
call fcn.14004bd00
mov ecx, dword [rsp + 0x54]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], edi
mov rdi, qword [rsp + 0x60]
mov r9d, ebp
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r13d
mov ebp, eax
cmovl ebp, r13d
movsxd rax, ebp
mov byte [rax + rdi], r13b
cmp byte [rsp + 0x138], r13b
jne 0x14007583b
cmp ebp, r13d
jle 0x14007589d
mov rdx, qword [rsp + 0xe0]
cmp rdx, r13
je 0x140075830
mov r8d, dword [rsp + 0x6c]
lea r9, [rsp + 0x130]
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, ebp
mov rdx, rdi
jmp 0x14007571f
cmp byte [rsp + 0x148], r13b
je 0x140075878
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x88]
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x130]
mov r8, rdi
mov r9d, eax
mov rdx, rsi
call fcn.14005e494
jmp 0x14007589d
lea rcx, [rsp + 0x58]
mov r8d, ebp
mov rdx, rdi
call fcn.140051154
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x130]
mov rdx, rsi
call fcn.14004b578
cmp rbx, r13
je 0x1400758ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x60]
call fcn.140044f24
lea rcx, [rsp + 0x58]
call fcn.140044f24
lea rcx, [rsp + 0x48]
call fcn.140044f24
cmp rbx, r13
je 0x1400758dd
cmp rbx, 0xffffffffffffffff
je 0x1400758dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x88]
call fcn.140044f24
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
lea rcx, [rsp + 0x98]
call fcn.140044f24
lea rcx, [rsp + 0xc0]
call fcn.140044f24
xor eax, eax
jmp 0x14007596c
mov r13d, 0x80070057
lea rcx, [rsp + 0x88]
call fcn.140044f24
lea rcx, [rsp + 0xa8]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
lea rcx, [rsp + 0x98]
call fcn.140044f24
lea rcx, [rsp + 0xc0]
call fcn.140044f24
mov eax, r13d
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret