Function at 0x14005d450
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov qword [rsp + 0x190], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x98], 0xffffffff
mov eax, dword [rsp + 0x1f8]
cmp dword [rsp + 0x98], eax
jne 0x14005d4a6
mov dword [rsp + 0x198], 1
jmp 0x14005d4b1
mov dword [rsp + 0x198], 0
movzx eax, byte [rsp + 0x198]
test eax, eax
je 0x14005d515
cmp dword [rsp + 0x1f8], 0xffffffff
je 0x14005d4d7
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x19c], eax
jmp 0x14005d504
xor eax, eax
cmp eax, 0xffffffff
jne 0x14005d4eb
mov dword [rsp + 0x1a0], 1
jmp 0x14005d4f6
mov dword [rsp + 0x1a0], 0
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x19c], eax
mov eax, dword [rsp + 0x19c]
jmp 0x14005daeb
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
je 0x14005d606
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x48]
mov rcx, qword [rsp + 0x1f0]
mov rcx, qword [rcx + 0x60]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
cmp qword [rsp + 0xe0], rax
jae 0x14005d606
movzx eax, byte [rsp + 0x1f8]
mov byte [rsp + 0xe8], al
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x60]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x1f0]
mov rcx, qword [rcx + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x1f0]
mov rcx, qword [rcx + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x1a8]
movzx ecx, byte [rsp + 0xe8]
mov byte [rax], cl
mov eax, dword [rsp + 0x1f8]
jmp 0x14005daeb
mov rax, qword [rsp + 0x1f0]
cmp qword [rax + 0x98], 0
jne 0x14005d622
mov eax, 0xffffffff
jmp 0x14005daeb
mov rcx, qword [rsp + 0x1f0]
call fcn.14005f150
mov rax, qword [rsp + 0x1f0]
cmp qword [rax + 0x80], 0
jne 0x14005d6d7
movzx eax, byte [rsp + 0x1f8]
mov byte [rsp + 0xf8], al
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x100], rax
movsx eax, byte [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov ecx, eax
call fcn.1402542b0
cmp eax, 0xffffffff
je 0x14005d694
mov dword [rsp + 0x1b0], 1
jmp 0x14005d69f
mov dword [rsp + 0x1b0], 0
movzx eax, byte [rsp + 0x1b0]
test eax, eax
je 0x14005d6bb
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x1b4], eax
jmp 0x14005d6c6
mov dword [rsp + 0x1b4], 0xffffffff
mov eax, dword [rsp + 0x1b4]
jmp 0x14005daeb
mov dword [rsp + 0x40], 8
movzx eax, byte [rsp + 0x1f8]
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140022710
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.14004b700
nop
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x118], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0xa0]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005d749
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x130], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0xa8]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005d798
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x120]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x51]
mov rdx, qword [rsp + 0x1f0]
add rdx, 0x8c
mov r8, qword [rsp + 0x140]
mov r8, qword [r8]
mov qword [rsp + 0x1b8], r8
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x140]
mov rax, qword [rsp + 0x1b8]
call qword [rax + 0x28]
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
jl 0x14005dab2
cmp dword [rsp + 0x1c0], 1
jle 0x14005d875
cmp dword [rsp + 0x1c0], 3
je 0x14005da0d
jmp 0x14005dab2
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x148], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0xb0]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005d8a1
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jbe 0x14005d963
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xb8], rax
xor eax, eax
test eax, eax
jne 0x14005d8f3
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x1f0]
mov r9, qword [rax + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, 1
mov rcx, qword [rsp + 0x158]
call fcn.140252b68
cmp qword [rsp + 0x90], rax
je 0x14005d963
mov dword [rsp + 0xc0], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
mov eax, dword [rsp + 0xc0]
jmp 0x14005daeb
mov rax, qword [rsp + 0x1f0]
mov byte [rax + 0x89], 1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x48], rax
je 0x14005d9a8
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0xc4], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
mov eax, dword [rsp + 0xc4]
jmp 0x14005daeb
cmp qword [rsp + 0x90], 0
jbe 0x14005d9b5
jmp 0x14005da08
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0x20
jae 0x14005d9e1
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.140046e40
jmp 0x14005da08
mov dword [rsp + 0xc8], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
mov eax, dword [rsp + 0xc8]
jmp 0x14005daeb
jmp 0x14005dad6
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x178], rax
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x170], al
movsx eax, byte [rsp + 0x170]
mov rdx, qword [rsp + 0x178]
mov ecx, eax
call fcn.1402542b0
cmp eax, 0xffffffff
je 0x14005da59
mov dword [rsp + 0x1c4], 1
jmp 0x14005da64
mov dword [rsp + 0x1c4], 0
movzx eax, byte [rsp + 0x1c4]
test eax, eax
je 0x14005da80
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x1c8], eax
jmp 0x14005da8b
mov dword [rsp + 0x1c8], 0xffffffff
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0xcc], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
mov eax, dword [rsp + 0xcc]
jmp 0x14005daeb
mov dword [rsp + 0xd0], 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
mov eax, dword [rsp + 0xd0]
jmp 0x14005daeb
jmp 0x14005d71d
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x1e8
ret