Function at 0x1400039d0
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 - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x140057888]
xor rax, rsp
mov qword [rbp], rax
mov r15d, edx
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x4c], r13d
cmp edx, 0xffffffff
jne 0x140003a20
xor eax, eax
jmp 0x140004128
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], r13
je 0x140003a58
mov rdx, qword [rdx]
mov r8, qword [rcx + 0x60]
movsxd rcx, dword [r8]
add rcx, rdx
cmp rdx, rcx
jae 0x140003a58
dec dword [r8]
mov rdx, qword [r12 + 0x48]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r15b
mov eax, r15d
jmp 0x140004128
cmp qword [r12 + 0x98], r13
jne 0x140003a6a
or eax, 0xffffffff
jmp 0x140004128
mov rdx, qword [r12 + 0x20]
lea rax, [r12 + 0x88]
cmp qword [rdx], rax
jne 0x140003a9a
mov rcx, qword [r12 + 0x78]
mov rax, qword [r12 + 0x70]
mov qword [rdx], rax
mov rax, qword [r12 + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [r12 + 0x58]
mov dword [rax], ecx
cmp qword [r12 + 0x80], r13
jne 0x140003ac5
movsx ecx, r15b
mov rdx, qword [r12 + 0x98]
call fcn.14000dc70
or r14, 0xffffffffffffffff
cmp eax, r14d
cmovne r14d, r15d
jmp 0x140004125
mov byte [rsp + 0x40], r15b
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140004ef0
nop
or r14, 0xffffffffffffffff
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.140005270
mov rbx, rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x30]
call fcn.140005270
mov rdi, rax
mov rcx, rbx
call fcn.1400077e0
mov rsi, rax
mov rbx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.1400077e0
mov rcx, qword [r12 + 0x80]
mov r10, qword [rcx]
lea rdx, [rbx + rsi]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x40]
lea rdx, [r12 + 0x8c]
call qword [r10 + 0x28]
mov edi, eax
mov edx, 3
lea rcx, [rsp + 0x54]
call fcn.14000cf80
nop
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x140003bc4
add rbx, 8
cmp qword [rbx], 0
je 0x140003b9c
mov rax, qword [rbx]
lea rcx, [rbp - 0x68]
cmp rax, rcx
je 0x140003b96
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003b80
cmp qword [rbx], 0
jne 0x140003bb5
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd30
mov rax, qword [rbp - 0x60]
mov qword [rbx], rax
xor esi, esi
mov qword [rbp - 0x68], rsi
jmp 0x140003bc6
xor esi, esi
lea rcx, [rsp + 0x54]
call fcn.14000cfd0
nop
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.14000cf80
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140003c43
add rbx, 8
cmp qword [rbx], 0
je 0x140003c1d
nop word [rax + rax]
mov rax, qword [rbx]
lea rcx, [rsp + 0x68]
cmp rax, rcx
je 0x140003c17
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003c00
cmp qword [rbx], 0
jne 0x140003c36
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd30
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x48]
call fcn.14000cfd0
test edi, edi
js 0x1400040a7
cmp edi, 1
jg 0x14000400a
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140005270
nop
mov rcx, rax
call fcn.1400077e0
mov rdi, qword [rsp + 0x58]
sub rdi, rax
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14000cf80
nop
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140003ce0
add rbx, 8
cmp qword [rbx], 0
je 0x140003cbc
nop
mov rax, qword [rbx]
lea rcx, [rbp - 0x80]
cmp rax, rcx
je 0x140003cb6
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003ca0
cmp qword [rbx], 0
jne 0x140003cd5
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd30
mov rax, qword [rbp - 0x78]
mov qword [rbx], rax
mov qword [rbp - 0x80], rsi
lea rcx, [rsp + 0x50]
call fcn.14000cfd0
test rdi, rdi
je 0x140003d30
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140005270
nop
or r13d, 1
mov dword [rsp + 0x4c], r13d
mov rcx, rax
call fcn.1400077e0
mov r9, qword [r12 + 0x98]
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140013230
cmp rdi, rax
je 0x140003d30
mov sil, 1
jmp 0x140003d33
xor sil, sil
test r13b, 1
je 0x140003dae
and r13d, 0xfffffffe
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
nop
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140003da4
add rbx, 8
cmp qword [rbx], 0
je 0x140003d7c
mov rax, qword [rbx]
lea rcx, [rbp - 0x50]
cmp rax, rcx
je 0x140003d76
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003d60
cmp qword [rbx], 0
jne 0x140003d95
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd30
mov rax, qword [rbp - 0x48]
mov qword [rbx], rax
mov qword [rbp - 0x50], 0
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
test sil, sil
jne 0x140003f8d
mov byte [r12 + 0x89], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x60], rax
jne 0x140003f0b
test rdi, rdi
jne 0x140003ae0
mov rcx, qword [rbp - 0x18]
cmp rcx, 0x20
jae 0x140003e90
mov rax, r14
sub rax, rcx
cmp rax, 8
jbe 0x140003e83
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140003e76
mov rdx, qword [rbp - 0x10]
cmp rdx, rbx
jae 0x140003e23
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008bb0
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
jmp 0x140003e40
test rbx, rbx
jne 0x140003e49
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax], bl
jmp 0x140003ae0
test rbx, rbx
je 0x140003ae0
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x140003ae0
lea rcx, str.string_too_long
call fcn.14000cce0
int3
lea rcx, str.string_too_long
call fcn.14000cce0
nop
cmp qword [rbp - 0x10], 0x10
jb 0x140003ea0
mov rcx, qword [rbp - 0x28]
call fcn.140012f20
mov qword [rbp - 0x10], 0xf
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140003f00
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003eee
mov rax, qword [r11 + 8]
mov qword [rax], rbx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140003ed1
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f20
nop
jmp 0x140004125
cmp qword [rbp - 0x10], 0x10
jb 0x140003f1b
mov rcx, qword [rbp - 0x28]
call fcn.140012f20
mov qword [rbp - 0x10], 0xf
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140003f7f
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003f6d
nop dword [rax]
mov rax, qword [r11 + 8]
mov qword [rax], rbx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140003f50
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f20
nop
mov eax, r15d
jmp 0x140004128
cmp qword [rbp - 0x10], 0x10
jb 0x140003f9d
mov rcx, qword [rbp - 0x28]
call fcn.140012f20
mov qword [rbp - 0x10], 0xf
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140003fff
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003fed
nop
mov rax, qword [r11 + 8]
mov qword [rax], rbx
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140003fd0
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f20
nop
jmp 0x140004125
cmp edi, 3
jne 0x1400040a7
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [r12 + 0x98]
call fcn.14000dc70
cmp eax, 0xffffffff
cmovne r14d, r15d
cmp qword [rbp - 0x10], 0x10
jb 0x14000403c
mov rcx, qword [rbp - 0x28]
call fcn.140012f20
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000409f
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], 0
je 0x14000408d
nop
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x140004070
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rsi
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f20
nop
jmp 0x140004125
cmp qword [rbp - 0x10], 0x10
jb 0x1400040b7
mov rcx, qword [rbp - 0x28]
call fcn.140012f20
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000411f
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], 0
je 0x14000410d
nop word [rax + rax]
mov rax, qword [r11 + 8]
mov qword [rax], rsi
mov rax, qword [r11 + 8]
mov rcx, qword [rax + 8]
mov qword [r11 + 8], rcx
cmp rcx, 0
jne 0x1400040f0
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rsi
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f20
nop
mov eax, r14d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000da30
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret