Function at 0x140009bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rbp], rax
mov r12d, edx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
cmp edx, 0xffffffff
jne 0x140009c40
xor eax, eax
jmp 0x14000a094
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009c7c
mov r8, qword [rcx + 0x58]
movsxd r9, dword [r8]
lea rcx, [rdx + r9]
cmp rdx, rcx
jae 0x140009c7c
lea ecx, [r9 - 1]
mov dword [r8], ecx
mov rdx, qword [r14 + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r12b
mov eax, r12d
jmp 0x14000a094
cmp qword [r14 + 0x90], r15
jne 0x140009c8d
or eax, 0xffffffff
jmp 0x14000a094
mov r8, qword [r14 + 0x18]
lea rax, [r14 + 0x80]
cmp qword [r8], rax
jne 0x140009cb7
mov rdx, qword [r14 + 0x70]
mov rcx, qword [r14 + 0x68]
mov qword [r8], rcx
mov rax, qword [r14 + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [r14 + 0x50]
mov dword [rax], edx
cmp qword [r14 + 0x78], r15
jne 0x140009cdb
movsx ecx, r12b
mov rdx, qword [r14 + 0x90]
call fcn.140021ce0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, r12d
jmp 0x14000a092
mov byte [rbp - 0x40], r12b
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x28]
call fcn.14000b070
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x28]
call fcn.14000ac60
mov rbx, rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x28]
call fcn.14000ac60
mov rdi, rax
mov rcx, rbx
call fcn.14000cb20
mov rsi, rax
mov rbx, qword [rbp - 0x10]
mov rcx, rdi
call fcn.14000cb20
mov rcx, qword [r14 + 0x78]
mov r10, qword [rcx]
lea rdx, [rbx + rsi]
lea r8, [rbp - 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x3f]
lea r8, [rbp - 0x40]
lea rdx, [r14 + 0x84]
call qword [r10 + 0x38]
mov edi, eax
mov edx, 3
lea rcx, [rbp - 0x38]
call fcn.140016a10
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140009dd7
add rbx, 8
cmp qword [rbx], 0
je 0x140009dad
nop word [rax + rax]
mov rax, qword [rbx]
lea rcx, [rsp + 0x60]
cmp rax, rcx
je 0x140009da7
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140009d90
cmp qword [rbx], 0
jne 0x140009dc6
mov r8d, 0xc9
lea rdx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.140016b40
mov rax, qword [rsp + 0x68]
mov qword [rbx], rax
xor esi, esi
mov qword [rsp + 0x60], rsi
jmp 0x140009dd9
xor esi, esi
lea rcx, [rbp - 0x38]
call fcn.140016af0
nop
mov edx, 3
lea rcx, [rbp - 0x34]
call fcn.140016a10
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140009e44
add rbx, 8
cmp qword [rbx], 0
je 0x140009e20
mov rax, qword [rbx]
lea rcx, [rbp - 0x70]
cmp rax, rcx
je 0x140009e1a
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140009e04
cmp qword [rbx], 0
jne 0x140009e39
mov r8d, 0xc9
lea rdx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.140016b40
mov rax, qword [rbp - 0x68]
mov qword [rbx], rax
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x34]
call fcn.140016af0
test edi, edi
js 0x14000a010
cmp edi, 1
jg 0x140009ff0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x28]
call fcn.14000ac60
nop
mov rcx, rax
call fcn.14000cb20
mov rdi, qword [rbp - 0x50]
sub rdi, rax
mov edx, 3
lea rcx, [rbp - 0x30]
call fcn.140016a10
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140009ee2
add rbx, 8
cmp qword [rbx], 0
je 0x140009ebd
nop
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
cmp rax, rcx
je 0x140009eb7
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140009ea0
cmp qword [rbx], 0
jne 0x140009ed6
mov r8d, 0xc9
lea rdx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.140016b40
mov rax, qword [rbp - 0x80]
mov qword [rbx], rax
mov qword [rsp + 0x78], rsi
lea rcx, [rbp - 0x30]
call fcn.140016af0
test rdi, rdi
je 0x140009f31
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.14000ac60
nop
or r15d, 1
mov dword [rsp + 0x40], r15d
mov rcx, rax
call fcn.14000cb20
mov r9, qword [r14 + 0x90]
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140023170
cmp rdi, rax
je 0x140009f31
mov sil, 1
jmp 0x140009f34
xor sil, sil
test r15b, 1
je 0x140009fb0
and r15d, 0xfffffffe
mov edx, 3
lea rcx, [rbp - 0x3c]
call fcn.140016a10
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140009fa7
add rbx, 8
cmp qword [rbx], 0
je 0x140009f7d
mov rax, qword [rbx]
lea rcx, [rsp + 0x48]
cmp rax, rcx
je 0x140009f77
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140009f60
cmp qword [rbx], 0
jne 0x140009f96
mov r8d, 0xc9
lea rdx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.140016b40
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov qword [rsp + 0x48], 0
lea rcx, [rbp - 0x3c]
call fcn.140016af0
test sil, sil
jne 0x14000a010
mov byte [r14 + 0x81], 1
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x48], rax
jne 0x140009feb
test rdi, rdi
jne 0x140009cf0
cmp qword [rbp - 0x10], 0x20
jae 0x14000a010
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x28]
call fcn.14000b3d0
jmp 0x140009cf0
mov ebx, r12d
jmp 0x14000a013
cmp edi, 3
jne 0x14000a010
movsx ecx, byte [rbp - 0x40]
mov rdx, qword [r14 + 0x90]
call fcn.140021ce0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, r12d
jmp 0x14000a013
or ebx, 0xffffffff
cmp qword [rbp - 8], 0x10
jb 0x14000a023
mov rcx, qword [rbp - 0x20]
call fcn.140020fe0
mov qword [rbp - 8], 0xf
xor edi, edi
mov qword [rbp - 0x10], rdi
mov byte [rbp - 0x20], dil
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000a08d
lea edx, [rdi + 3]
lea rcx, [rbp - 0x3c]
call fcn.140016a10
mov rdx, qword [rbp - 0x28]
cmp qword [rdx + 8], rdi
je 0x14000a07c
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdx + 8]
mov qword [rax], rdi
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
test rcx, rcx
jne 0x14000a060
mov rdx, qword [rbp - 0x28]
mov qword [rdx + 8], rdi
lea rcx, [rbp - 0x3c]
call fcn.140016af0
mov rcx, qword [rbp - 0x28]
call fcn.140020fe0
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140020640
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret