Function at 0x1400039c0
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 0x140003a10
xor eax, eax
jmp 0x140004118
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], r13
je 0x140003a48
mov rdx, qword [rdx]
mov r8, qword [rcx + 0x60]
movsxd rcx, dword [r8]
add rcx, rdx
cmp rdx, rcx
jae 0x140003a48
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 0x140004118
cmp qword [r12 + 0x98], r13
jne 0x140003a5a
or eax, 0xffffffff
jmp 0x140004118
mov rdx, qword [r12 + 0x20]
lea rax, [r12 + 0x88]
cmp qword [rdx], rax
jne 0x140003a8a
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 0x140003ab5
movsx ecx, r15b
mov rdx, qword [r12 + 0x98]
call fcn.14000dc50
or r14, 0xffffffffffffffff
cmp eax, r14d
cmovne r14d, r15d
jmp 0x140004115
mov byte [rsp + 0x40], r15b
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140004ea0
nop
or r14, 0xffffffffffffffff
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.140005220
mov rbx, rax
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x30]
call fcn.140005220
mov rdi, rax
mov rcx, rbx
call fcn.1400077c0
mov rsi, rax
mov rbx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.1400077c0
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 0x140003bb4
add rbx, 8
cmp qword [rbx], 0
je 0x140003b8c
mov rax, qword [rbx]
lea rcx, [rbp - 0x68]
cmp rax, rcx
je 0x140003b86
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003b70
cmp qword [rbx], 0
jne 0x140003ba5
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd10
mov rax, qword [rbp - 0x60]
mov qword [rbx], rax
xor esi, esi
mov qword [rbp - 0x68], rsi
jmp 0x140003bb6
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 0x140003c33
add rbx, 8
cmp qword [rbx], 0
je 0x140003c0d
nop word [rax + rax]
mov rax, qword [rbx]
lea rcx, [rsp + 0x68]
cmp rax, rcx
je 0x140003c07
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003bf0
cmp qword [rbx], 0
jne 0x140003c26
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd10
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 0x140004097
cmp edi, 1
jg 0x140003ffa
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140005220
nop
mov rcx, rax
call fcn.1400077c0
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 0x140003cd0
add rbx, 8
cmp qword [rbx], 0
je 0x140003cac
nop
mov rax, qword [rbx]
lea rcx, [rbp - 0x80]
cmp rax, rcx
je 0x140003ca6
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003c90
cmp qword [rbx], 0
jne 0x140003cc5
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd10
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 0x140003d20
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140005220
nop
or r13d, 1
mov dword [rsp + 0x4c], r13d
mov rcx, rax
call fcn.1400077c0
mov r9, qword [r12 + 0x98]
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140013210
cmp rdi, rax
je 0x140003d20
mov sil, 1
jmp 0x140003d23
xor sil, sil
test r13b, 1
je 0x140003d9e
and r13d, 0xfffffffe
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
nop
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140003d94
add rbx, 8
cmp qword [rbx], 0
je 0x140003d6c
mov rax, qword [rbx]
lea rcx, [rbp - 0x50]
cmp rax, rcx
je 0x140003d66
lea rbx, [rax + 8]
cmp qword [rbx], 0
jne 0x140003d50
cmp qword [rbx], 0
jne 0x140003d85
mov r8d, 0xb5
lea rdx, str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexutility
lea rcx, str.ITERATOR_LIST_CORRUPTED_
call fcn.14000bd10
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 0x140003f7d
mov byte [r12 + 0x89], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x60], rax
jne 0x140003efb
test rdi, rdi
jne 0x140003ad0
mov rcx, qword [rbp - 0x18]
cmp rcx, 0x20
jae 0x140003e80
mov rax, r14
sub rax, rcx
cmp rax, 8
jbe 0x140003e73
lea rbx, [rcx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140003e66
mov rdx, qword [rbp - 0x10]
cmp rdx, rbx
jae 0x140003e13
mov r8, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140008b90
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
jmp 0x140003e30
test rbx, rbx
jne 0x140003e39
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax], bl
jmp 0x140003ad0
test rbx, rbx
je 0x140003ad0
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 0x140003ad0
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 0x140003e90
mov rcx, qword [rbp - 0x28]
call fcn.140012f00
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 0x140003ef0
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003ede
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 0x140003ec1
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f00
nop
jmp 0x140004115
cmp qword [rbp - 0x10], 0x10
jb 0x140003f0b
mov rcx, qword [rbp - 0x28]
call fcn.140012f00
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 0x140003f6f
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003f5d
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 0x140003f40
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f00
nop
mov eax, r15d
jmp 0x140004118
cmp qword [rbp - 0x10], 0x10
jb 0x140003f8d
mov rcx, qword [rbp - 0x28]
call fcn.140012f00
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 0x140003fef
lea edx, [rbx + 3]
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], rbx
je 0x140003fdd
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 0x140003fc0
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f00
nop
jmp 0x140004115
cmp edi, 3
jne 0x140004097
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [r12 + 0x98]
call fcn.14000dc50
cmp eax, 0xffffffff
cmovne r14d, r15d
cmp qword [rbp - 0x10], 0x10
jb 0x14000402c
mov rcx, qword [rbp - 0x28]
call fcn.140012f00
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000408f
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], 0
je 0x14000407d
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 0x140004060
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rsi
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f00
nop
jmp 0x140004115
cmp qword [rbp - 0x10], 0x10
jb 0x1400040a7
mov rcx, qword [rbp - 0x28]
call fcn.140012f00
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000410f
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.14000cf80
mov r11, qword [rbp - 0x30]
cmp qword [r11 + 8], 0
je 0x1400040fd
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 0x1400040e0
mov r11, qword [rbp - 0x30]
mov qword [r11 + 8], rsi
lea rcx, [rsp + 0x44]
call fcn.14000cfd0
mov rcx, qword [rbp - 0x30]
call fcn.140012f00
nop
mov eax, r14d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000da10
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret