Function at 0x1400086b0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1280
call fcn.1400231f0
sub rsp, rax
mov rax, qword [0x140025100]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov dword [rsp + 0xfe0], 0
mov dword [rsp + 0x9a4], 0
mov dword [rsp + 0x9a0], 0
mov dword [rsp + 0x570], 0
mov dword [rsp + 0x9a8], 0
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x61]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov byte [rsp + 0x590], 0
lea rax, [rsp + 0x591]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov byte [rsp + 0xbe0], 0
lea rax, [rsp + 0xbe1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov qword [rsp + 0x998], 0xffffffffffffffff
mov qword [rsp + 0x990], 0xffffffffffffffff
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x400
test eax, eax
je 0x1400087e9
lea rdx, [0x140002a1c]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x1400087e9
lea rax, [0x1400259fc]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x1400087df
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002c50]
call fcn.140005ae0
mov eax, 1
jmp 0x140009ddd
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x800
test eax, eax
je 0x14000885b
lea rdx, [0x140002a18]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x14000885b
lea rax, [0x1400259fc]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140008851
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002c70]
call fcn.140005ae0
mov eax, 1
jmp 0x140009ddd
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1298]
mov r9, qword [rax + 8]
lea r8, [0x140002c8c]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x140009d78
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x60]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0xfe4], eax
cmp dword [rsp + 0xfe4], 1
jbe 0x1400088fa
mov eax, dword [rsp + 0xfe4]
dec eax
mov eax, eax
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x5c
je 0x1400088fa
lea r8, [0x140002a30]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001f5e0
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14000b630
mov qword [rsp + 0x998], rax
cmp qword [rsp + 0x998], 0xffffffffffffffff
je 0x140009d47
lea r9, [rsp + 0x60]
lea r8, [0x140002c98]
mov edx, 0x105
lea rcx, [rsp + 0x460]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x140009ccb
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x20000
test eax, eax
je 0x1400089ec
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x990], rax
cmp qword [rsp + 0x990], 0xffffffffffffffff
jne 0x1400089ea
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x990], rax
jmp 0x140008a26
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x990], rax
cmp qword [rsp + 0x990], 0xffffffffffffffff
je 0x140009cc9
mov qword [rsp + 0xfe8], 0
xor edx, edx
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x140008a70
mov dword [rsp + 0x9a4], 1
mov dword [rsp + 0x9a0], 1
jmp 0x14000910f
mov dword [rsp + 0xff0], 0
lea r9, [rsp + 0x578]
lea r8, [rsp + 0x590]
mov edx, 0x400
mov rcx, qword [rsp + 0x990]
call fcn.140020a50
mov dword [rsp + 0x574], eax
cmp dword [rsp + 0x574], 1
jbe 0x140008b59
lea r8, [rsp + 0x590]
mov edx, 0x400
lea rcx, [rsp + 0xbe0]
call fcn.1400053e0
mov dword [rsp + 0x9ac], eax
lea r8, [rsp + 0x590]
mov edx, 0x400
mov cl, 0x2c
call fcn.140020490
cmp eax, 7
jne 0x140008b17
lea r8, [rsp + 0xbe0]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1400053e0
mov dword [rsp + 0x9ac], eax
mov dword [rsp + 0xff0], 1
jmp 0x140008b54
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0xbe0]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
test rax, rax
je 0x140008b54
lea r8, [rsp + 0x460]
lea rdx, [0x140002ca8]
mov ecx, 1
call fcn.1400058d0
jmp 0x140008a7b
cmp dword [rsp + 0x9ac], 0
jne 0x1400090a4
cmp dword [rsp + 0xff0], 0
je 0x140008bbf
lea rcx, [rsp + 0x60]
call fcn.14000bee0
mov qword [rsp + 0xfe8], rax
cmp qword [rsp + 0xfe8], 0
jne 0x140008bbd
lea r8, [rsp + 0x460]
lea rdx, [0x140002cd0]
mov ecx, 1
call fcn.1400058d0
mov dword [rsp + 0xfe0], 0
mov dword [rsp + 0x9a4], 1
jmp 0x140008bee
lea r8, [rsp + 0x460]
lea rdx, [0x140002d40]
mov ecx, 1
call fcn.1400058d0
mov dword [rsp + 0xfe0], 0
mov dword [rsp + 0x9a4], 1
cmp dword [rsp + 0xfe0], 0
jne 0x140008d06
cmp dword [rsp + 0x9a4], 0
jne 0x140008d06
mov dword [rsp + 0xff4], 0
mov dword [rsp + 0xff8], 0
mov rax, qword [rsp + 0x1298]
cmp qword [rax + 0x120], 0
je 0x140008c83
mov rax, qword [rsp + 0x1298]
mov rdx, qword [rax + 0x120]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 8]
call fcn.140020990
mov dword [rsp + 0xff4], eax
mov rax, qword [rsp + 0xfe8]
add rax, 0x14
mov rcx, qword [rsp + 0x1298]
mov rdx, qword [rcx + 0x120]
mov rcx, rax
call fcn.140020990
mov dword [rsp + 0xff8], eax
cmp dword [rsp + 0xff4], 0
je 0x140008caf
cmp dword [rsp + 0xff8], 0
jne 0x140008caf
mov dword [rsp + 0x9a4], 1
mov dword [rsp + 0xfe0], 0
jmp 0x140008d06
cmp dword [rsp + 0xff8], 0
je 0x140008d06
cmp dword [rsp + 0xff4], 0
jne 0x140008d06
mov dword [rsp + 0xfe0], 1
mov dword [rsp + 0x9a4], 0
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140008d06
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002d98]
call fcn.140005ae0
cmp dword [rsp + 0xfe0], 0
jne 0x1400090a2
cmp dword [rsp + 0x9a4], 0
jne 0x1400090a2
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x100
test eax, eax
je 0x140008dfb
lea rdx, [0x140002a18]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008d91
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a18]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x140008d8f
mov dword [rsp + 0x9a4], 1
mov dword [rsp + 0xfe0], 0
jmp 0x140008df6
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a18]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008df6
mov dword [rsp + 0xfe0], 1
mov dword [rsp + 0x9a4], 0
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140008df6
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002d98]
call fcn.140005ae0
jmp 0x1400090a2
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x200
test eax, eax
je 0x140008ed4
lea rdx, [0x140002a1c]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008e6a
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a1c]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x140008e68
mov dword [rsp + 0x9a4], 1
mov dword [rsp + 0xfe0], 0
jmp 0x140008ecf
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a1c]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008ecf
mov dword [rsp + 0xfe0], 1
mov dword [rsp + 0x9a4], 0
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140008ecf
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002d98]
call fcn.140005ae0
jmp 0x1400090a2
mov dword [rsp + 0x1000], 0
mov dword [rsp + 0xffc], 0
lea rdx, [0x140002dd0]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008f14
mov dword [rsp + 0xffc], 0x1000
jmp 0x140008f90
lea rdx, [0x140002a18]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008f3e
mov dword [rsp + 0xffc], 0x100
jmp 0x140008f90
lea rdx, [0x140002dd4]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008f68
mov dword [rsp + 0xffc], 0x10
jmp 0x140008f90
lea rdx, [0x140002a1c]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008f90
mov dword [rsp + 0xffc], 1
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002dd0]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008fc2
mov dword [rsp + 0x1000], 0x1000
jmp 0x14000904d
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a18]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140008ff1
mov dword [rsp + 0x1000], 0x100
jmp 0x14000904d
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002dd4]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x140009020
mov dword [rsp + 0x1000], 0x10
jmp 0x14000904d
mov rax, qword [rsp + 0xfe8]
add rax, 0x119
lea rdx, [0x140002a1c]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x14000904d
mov dword [rsp + 0x1000], 1
mov eax, dword [rsp + 0x1000]
cmp dword [rsp + 0xffc], eax
jae 0x140009097
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x14000908a
mov rax, qword [rsp + 0x1298]
add rax, 0x18
mov rdx, rax
lea rcx, [0x140002d98]
call fcn.140005ae0
mov dword [rsp + 0xfe0], 1
jmp 0x1400090a2
mov dword [rsp + 0x9a4], 1
jmp 0x14000910f
mov dword [rsp + 0xfe0], 1
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x14000910f
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
cmp dword [rsp + 0xfe0], 0
jne 0x140009c99
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1290]
mov r9, qword [rax]
lea r8, [0x140002e00]
mov edx, 0x400
lea rcx, [rsp + 0x590]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x140009c37
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x590]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [rsp + 0x590]
mov rax, qword [rsp + 0x1298]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x10
test eax, eax
je 0x1400097e1
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1298]
mov r9, qword [rax + 8]
lea r8, [0x140002e10]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x14000977c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x1008], rax
cmp qword [rsp + 0x1008], 0xffffffffffffffff
je 0x140009770
mov dword [rsp + 0x1010], 0
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x8000
test eax, eax
jne 0x140009369
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1290]
mov rdi, qword [rdx + 8]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
mov rax, qword [rsp + 0x1290]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x1010], eax
mov rax, qword [rsp + 0x1298]
cmp qword [rax + 0x150], 0
je 0x140009364
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, 2
lea rdx, [0x140002e20]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1298]
mov rdi, qword [rdx + 0x150]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
mov rax, qword [rsp + 0x1298]
mov rdx, qword [rax + 0x150]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140009530
xor eax, eax
mov word [rsp + 0x1020], ax
lea rax, [rsp + 0x1022]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov eax, 0xfeff
mov word [rsp + 0x1230], ax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, 2
lea rdx, [rsp + 0x1230]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x28], 0x101
lea rax, [rsp + 0x1020]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov rax, qword [rsp + 0x1290]
mov r8, qword [rax + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000944a
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x1020]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [rsp + 0x1020]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x1010], eax
mov rax, qword [rsp + 0x1298]
cmp qword [rax + 0x150], 0
je 0x140009530
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [0x140002e24]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [0x140002e24]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x28], 0x101
lea rax, [rsp + 0x1020]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov rax, qword [rsp + 0x1298]
mov r8, qword [rax + 0x150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140009530
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x1020]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [rsp + 0x1020]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x1010], 0
je 0x140009756
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rsp + 0x1298]
cmp qword [rax + 0x150], 0
je 0x140009577
mov rax, qword [rsp + 0x1298]
mov rax, qword [rax + 0x150]
mov qword [rsp + 0x1240], rax
jmp 0x140009586
lea rax, [0x140002bdd]
mov qword [rsp + 0x1240], rax
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x10
test eax, eax
je 0x1400095a9
lea rax, [0x140002e2c]
mov qword [rsp + 0x1248], rax
jmp 0x1400095b8
lea rax, [0x140002e30]
mov qword [rsp + 0x1248], rax
cmp dword [rsp + 0x9a0], 0
je 0x1400095d3
lea rax, [0x140002bdd]
mov qword [rsp + 0x1250], rax
jmp 0x1400095e2
lea rax, [0x140002e20]
mov qword [rsp + 0x1250], rax
mov rax, qword [rsp + 0x1240]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1248]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1298]
mov rax, qword [rax + 0x128]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1250]
lea r8, [0x140002e38]
mov edx, 0x221
lea rcx, [rsp + 0x9b0]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x1400096f4
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x9b0]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [rsp + 0x9b0]
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400096e8
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea rax, [0x140025a00]
lock inc dword [rax]
jmp 0x1400096f2
lea rax, [0x1400259f8]
lock inc dword [rax]
jmp 0x140009754
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009754
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
jmp 0x140009760
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rcx, qword [rsp + 0x1008]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000977a
lea rax, [0x1400259f8]
lock inc dword [rax]
jmp 0x1400097dc
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x1400097dc
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
jmp 0x140009c35
cmp dword [rsp + 0x9ac], 0
jne 0x140009bd5
mov dword [rsp + 0x1234], 0
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 8]
call fcn.140020440
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1298]
mov r9, qword [rax + 8]
lea r8, [0x140002e50]
mov edx, 0x400
lea rcx, [rsp + 0x590]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x1000
test eax, eax
je 0x1400098b7
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x590]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x1238], eax
cmp dword [rsp + 0x1238], 1
jbe 0x1400098b7
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x590]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov byte [rsp + rax + 0x58f], 0x5f
cmp dword [rsp + 0x9ac], 0
jne 0x140009963
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x1000
mov r9d, dword [rsp + 0x9a4]
mov r8d, eax
lea rdx, [rsp + 0x590]
mov rax, qword [rsp + 0x1290]
mov rcx, qword [rax + 8]
call fcn.140008360
mov dword [rsp + 0x1234], eax
cmp dword [rsp + 0x1234], 0
jne 0x140009961
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009957
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x123c], eax
mov r9d, dword [rsp + 0x123c]
mov rax, qword [rsp + 0x1290]
mov r8, qword [rax + 8]
lea rdx, [0x140002e58]
xor ecx, ecx
call fcn.1400058d0
mov ecx, dword [rsp + 0x123c]
call fcn.140005800
lea rax, [0x1400259f8]
lock inc dword [rax]
jmp 0x1400099c3
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x1400099c3
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
cmp dword [rsp + 0x1234], 0
je 0x140009bd3
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x1000
test eax, eax
je 0x1400099f6
lea rax, [0x140002e80]
mov qword [rsp + 0x1258], rax
jmp 0x140009a05
lea rax, [0x140002e84]
mov qword [rsp + 0x1258], rax
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 0x10
test eax, eax
je 0x140009a28
lea rax, [0x140002e2c]
mov qword [rsp + 0x1260], rax
jmp 0x140009a37
lea rax, [0x140002e30]
mov qword [rsp + 0x1260], rax
cmp dword [rsp + 0x9a0], 0
je 0x140009a52
lea rax, [0x140002bdd]
mov qword [rsp + 0x1268], rax
jmp 0x140009a61
lea rax, [0x140002e20]
mov qword [rsp + 0x1268], rax
mov rax, qword [rsp + 0x1258]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1290]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1260]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1298]
mov rax, qword [rax + 0x128]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1268]
lea r8, [0x140002e88]
mov edx, 0x221
lea rcx, [rsp + 0x9b0]
call fcn.14001f670
mov dword [rsp + 0x9ac], eax
cmp dword [rsp + 0x9ac], 0
jne 0x140009b73
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x9b0]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x578]
mov r8d, eax
lea rdx, [rsp + 0x9b0]
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009b67
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea rax, [0x140025a00]
lock inc dword [rax]
jmp 0x140009b71
lea rax, [0x1400259f8]
lock inc dword [rax]
jmp 0x140009bd3
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009bd3
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
jmp 0x140009c35
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009c35
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
jmp 0x140009c97
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009c97
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
jmp 0x140009ca3
lea rax, [0x1400259fc]
lock inc dword [rax]
mov rcx, qword [rsp + 0x990]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xfe8], 0
je 0x140009cc9
mov rcx, qword [rsp + 0xfe8]
call fcn.14000c160
jmp 0x140009d2b
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009d2b
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
mov rcx, qword [rsp + 0x998]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x998], 0xffffffffffffffff
jmp 0x140009d76
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009d6c
lea r8, [rsp + 0x60]
lea rdx, [0x140002ea0]
xor ecx, ecx
call fcn.1400058d0
lea rax, [0x1400259f8]
lock inc dword [rax]
jmp 0x140009dd8
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [0x1400259f8]
lock inc dword [rax]
mov rax, qword [rsp + 0x1298]
mov eax, dword [rax + 0x10]
and eax, 8
test eax, eax
je 0x140009dd8
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov r8d, eax
lea rdx, [0x140002dd8]
xor ecx, ecx
call fcn.1400058d0
mov eax, dword [rsp + 0x9ac]
and eax, 0xffff
mov ecx, eax
call fcn.140005800
mov eax, 1
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.140021740
add rsp, 0x1280
pop rdi
ret