Function at 0x140091760
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r10d, edx
mov rax, qword [0x1400b97c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs r13, 0xc60b14ce69e85e2c
movabs rdi, 0xa475b2b6ce56665c
movabs rbx, 0x94af0098b6b43bad
movabs r14, 0x94af009824df0647
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x7c], 0xffffffff
movsx eax, r10b
mov dword [rsp + 0x70], eax
lea rcx, [rbx - 0x148a8317]
lea r15, [rbx - 0x34739758]
lea r12, [r14 + 0x1c93f40d]
mov r11d, 0xffffffff
mov dword [rsp + 0x50], r10d
jmp 0x140091810
cmp rax, rcx
mov ecx, dword [rsp + 0x44]
cmove ecx, esi
mov dword [rsp + 0x44], ecx
lea rcx, [r14 + 0x4f86614f]
cmovne rcx, rax
mov edx, esi
nop word cs:[rax + rax]
mov esi, edx
mov rax, rcx
cmp rcx, r15
jge 0x140091880
cmp rax, r12
jae 0x1400918f0
lea r8, [r14 + 0x93832f3]
cmp rax, r8
jae 0x1400919c3
lea rdx, [r14 - 0x89202ff]
cmp rax, rdx
jae 0x140091b18
lea r8, [r14 - 0x247b2f04]
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x71], 1
lea rcx, [r14 + 0x511cad46]
lea rax, [rsp + 0x9f]
cmp qword [rsp + 0x90], rax
lea rax, [rbx + 0x2e52ad8e]
jmp 0x140091b97
lea r8, [rbx - 0x148a8317]
cmp rax, r8
jge 0x140091970
lea r8, [rbx - 0x27b6ca55]
cmp rax, r8
jae 0x140091a0d
lea rcx, [rbx - 0x3356d7f7]
cmp rax, rcx
jae 0x140091b30
lea rcx, [rbx - 0x3408c96b]
cmp rax, rcx
jae 0x140091d48
mov rcx, rax
mov edx, esi
cmp rax, r15
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x40]
lea rcx, [rbx - 0x317f6473]
cmp qword [rax], 0
lea rax, [rbx + 0x17548f16]
jmp 0x140091b97
lea r8, [r14 + 0x4f86614f]
cmp rax, r8
jae 0x140091a9a
lea r8, [r14 + 0x3371af57]
cmp rax, r8
jae 0x140091b50
lea rcx, [r14 + 0x26b9714f]
cmp rax, rcx
jae 0x140091cb5
mov rcx, rax
mov edx, esi
cmp rax, r12
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x80]
movsx ecx, byte [rsp + 0x9f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov r11d, 0xffffffff
mov r10d, dword [rsp + 0x50]
lea rcx, [rbx + 0x11abf299]
lea rdx, [rbx + 0x435d7d84]
jmp 0x140091e73
lea r9, [rbx + 0x17548f16]
cmp rax, r9
jge 0x140091acd
lea rdx, [rbx + 0x106f2c32]
cmp rax, rdx
jae 0x140091ba2
cmp rax, rbx
jae 0x140091d7e
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
mov eax, dword [rsp + 0x78]
mov edx, dword [rsp + 0x7c]
lea rcx, [r14 + 0x93832f3]
cmp edx, eax
cmovne rcx, r15
mov edx, esi
jmp 0x140091810
lea r9, [r14 + 0x11550032]
cmp rax, r9
jae 0x140091bcb
lea rdx, [r14 + 0x9768325]
cmp rax, rdx
jae 0x140091d8e
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x68], 0xffffffff
lea rax, [r13 + 0x18d96d64]
xor r8d, r8d
jmp 0x140091cfd
lea r9, [rbx - 0x226458fd]
cmp rax, r9
jae 0x140091c02
lea rcx, [rbx - 0x269b5578]
cmp rax, rcx
jae 0x140091da7
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov r9, qword [rax + 0x80]
mov edx, 1
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0x74], ebp
mov rbp, r12
mov r12, r13
mov r13, qword [rsp + 0x80]
mov r8, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r11d, 0xffffffff
mov r10d, dword [rsp + 0x50]
lea rcx, [r14 + 0x26b9714f]
lea rdx, [r14 - 0x247b2f04]
cmp r13, rax
mov r13, r12
mov r12, rbp
mov ebp, dword [rsp + 0x74]
jmp 0x140091e76
lea r9, [r14 + 0x5aaf5871]
cmp rax, r9
jae 0x140091c40
lea rcx, [r14 + 0x511cad46]
cmp rax, rcx
jae 0x140091dd2
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
jmp 0x140091d74
lea r8, [rbx + 0x2e52ad8e]
cmp rax, r8
jge 0x140091c96
lea rcx, [rbx + 0x1e3e188c]
cmp rax, rcx
jae 0x1400917eb
mov rcx, rax
mov edx, esi
cmp rax, r9
jne 0x140091810
mov rax, qword [rsp + 0x48]
lea rcx, [r14 + 0x5aaf5871]
cmp qword [rax + 0x80], 0
lea rax, [rbx - 0x3356d7f7]
jmp 0x140091b97
cmp rax, r14
jae 0x140091de7
lea rcx, [r14 + 0x19a127b2]
cmp rax, rdx
jmp 0x140091800
lea rdx, [rbx - 0x317f6473]
cmp rax, rdx
jae 0x140091df6
cmp rax, rcx
mov ecx, dword [rsp + 0x44]
cmove ecx, r11d
jmp 0x140091eb1
lea rcx, [r14 + 0x4bd6a167]
cmp rax, rcx
jae 0x140091e39
mov rcx, rax
mov edx, esi
cmp rax, r8
jne 0x140091810
mov r8, qword [rsp + 0x88]
lea rax, [r14 - 0x247b2f04]
lea rcx, [rbx - 0x27b6ca55]
lea rdx, [rsp + 0xa0]
sub r8, rdx
mov qword [rsp + 0x80], r8
cmove rcx, rax
mov edx, esi
jmp 0x140091810
lea r8, [rbx + 0x11abf299]
cmp rax, r8
jae 0x140091e81
lea rcx, [rbx - 0x20e732a7]
cmp rax, rdx
cmovne rcx, rax
cmove ebp, r11d
mov edx, esi
jmp 0x140091810
lea rcx, [r14 + 0x19a127b2]
cmp rax, rcx
jae 0x140091e9a
mov rcx, rax
mov edx, esi
cmp rax, r9
jne 0x140091810
mov eax, dword [rsp + 0x54]
lea rcx, [r14 - 0x89202ff]
cmp eax, 3
cmove rcx, r12
mov edx, esi
jmp 0x140091810
lea rcx, [rbx - 0x20e732a7]
cmp rax, rcx
jae 0x140091eaa
mov rcx, rax
mov edx, esi
cmp rax, r9
jne 0x140091810
mov eax, dword [rsp + 0x54]
lea rcx, [r14 + 0x11550032]
lea rdx, [rbx - 0x269b5578]
cmp eax, 3
cmovl rcx, rdx
mov edx, esi
jmp 0x140091810
lea r8, [r14 + 0x5b74d0fd]
cmp rax, r8
jae 0x140091ec3
mov rcx, rax
mov edx, esi
cmp rax, r9
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
add rax, 0x70
mov qword [rsp + 0x68], rax
lea rax, [rdi + 0x38bcdfe]
mov rcx, rax
jmp 0x140091f61
lea r9, [rbx + 0x435d7d84]
lea rcx, [rbx + 0x1e3e188c]
mov edx, 0xffffffff
cmp rax, r9
jge 0x140091810
cmp rax, r8
mov ecx, dword [rsp + 0x44]
cmove ecx, r11d
jmp 0x140091dda
cmp rax, rcx
mov rcx, rax
cmove rcx, r13
mov r9d, dword [rsp + 0x44]
cmove r9d, r10d
lea rdx, [r13 + 0x5f4f8573]
cmp rax, rdx
cmovge rcx, r13
cmovge r9d, r8d
mov dword [rsp + 0x44], r9d
mov rax, rcx
lea rcx, [r13 + 0x318045e7]
lea rdx, [r13 + 0x18d96d64]
jmp 0x140091d12
je 0x140091d30
cmp rax, rcx
jge 0x140091cd0
cmp rax, rdx
jae 0x140091d10
cmp rax, r13
jne 0x140091d12
jmp 0x140091d74
mov eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0x68]
lea rax, [r13 + 0x5f4f8573]
cmove rcx, rax
mov rax, rcx
jmp 0x140091cfd
mov rcx, rax
mov edx, esi
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x58]
dec dword [rcx]
mov rax, qword [rax + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], r10b
mov dword [rsp + 0x44], r10d
mov rcx, rbx
mov edx, esi
jmp 0x140091810
mov rcx, rax
mov edx, esi
jne 0x140091810
jmp 0x140092005
lea rcx, [rbx - 0x20e732a7]
cmp rax, rdx
cmovne rcx, rax
cmove ebp, r10d
mov edx, esi
jmp 0x140091810
mov rcx, rax
mov edx, esi
jne 0x140091810
mov eax, dword [rsp + 0x54]
lea rcx, [r14 - 0x89202ff]
lea rdx, [r14 + 0x3371af57]
cmp eax, 2
cmovb rcx, rdx
mov edx, esi
jmp 0x140091810
mov ecx, dword [rsp + 0x44]
cmove ecx, r10d
mov dword [rsp + 0x44], ecx
cmove rax, r14
jmp 0x140091eb9
lea rcx, [r14 + 0x4f86614f]
cmp rax, r14
jmp 0x140091800
mov rcx, rax
mov edx, esi
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x58]
movsxd r8, dword [rcx]
add r8, qword [rdx]
lea rcx, [rbx + 0x17548f16]
cmp qword [rax], r8
lea rax, [rbx - 0x3408c96b]
cmovb rcx, rax
mov edx, esi
jmp 0x140091810
mov rcx, rax
mov edx, esi
jne 0x140091810
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x80]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov r11d, 0xffffffff
mov r10d, dword [rsp + 0x50]
lea rcx, [r14 + 0x9768325]
lea rdx, [rbx + 0x106f2c32]
cmp eax, 0xffffffff
cmove rcx, rdx
mov edx, esi
jmp 0x140091810
lea rcx, [rbx + 0x1e3e188c]
cmp rax, r8
cmovne rcx, rax
cmove esi, r10d
mov edx, esi
jmp 0x140091810
cmp rax, rcx
mov ecx, dword [rsp + 0x44]
cmove ecx, r11d
jmp 0x1400917f5
mov ecx, dword [rsp + 0x44]
cmove ecx, ebp
mov dword [rsp + 0x44], ecx
cmove rax, rbx
mov rcx, rax
mov edx, esi
jmp 0x140091810
mov rcx, rax
mov edx, esi
jne 0x140091810
mov byte [rsp + 0x9f], r10b
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x68]
mov rdx, qword [rsp + 0x48]
add rdx, 0x74
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x9f]
lea r9, [rsp + 0xa0]
call qword [rax + 0x38]
mov r11d, 0xffffffff
mov r10d, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
lea rcx, [rbx - 0x226458fd]
mov edx, esi
jmp 0x140091810
mov rcx, qword [rsp + 0x60]
cmp rcx, qword [rsp + 0x68]
cmovne rdx, rdi
mov rcx, rdx
lea rdx, [rdi - 0x4e0c2e17]
nop dword [rax + rax]
cmp rcx, rdi
jb 0x140091f90
cmp rcx, rax
jae 0x140091f50
cmp rcx, rdi
jne 0x140091f70
jmp 0x140091fe6
cmp rcx, rdx
jne 0x140091f70
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x90]
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + 0x88]
mov r9, qword [rsp + 0x58]
mov r9, qword [r9 + 0x88]
mov r10, qword [rsp + 0x58]
mov r11, qword [r10 + 0x18]
mov qword [r11], r9
mov r11d, 0xffffffff
mov r9, qword [r10 + 0x38]
mov qword [r9], rdx
sub ecx, edx
mov rdx, qword [r10 + 0x50]
mov r10d, dword [rsp + 0x50]
mov dword [rdx], ecx
mov rcx, rdi
jmp 0x140091f61
mov rax, qword [rsp + 0x48]
lea rcx, [r14 + 0x4bd6a167]
cmp qword [rax + 0x68], 0
cmove r8, rcx
mov rcx, r8
mov edx, esi
jmp 0x140091810
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400acf30
mov eax, dword [rsp + 0x44]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret