Function at 0x2580dda00
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x3c0
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov qword [rsp + 0x90], rdx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x3f0], rcx
lea rcx, [rsp + 0xa0]
mov qword [rax], rdx
xor edx, edx
mov qword [rsp + 0x58], 0
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x2580ddb70
mov edx, 0x4469fae0
lea rcx, [0x2580ed640]
call fcn.2580d0760
mov edx, 0x20019
mov rcx, rax
call fcn.2580d7ca0
mov rsi, qword [rsp + 0x3f0]
mov qword [rsi + 0x10], rax
mov rax, qword [0x258169040]
mov rax, qword [rax]
mov rcx, qword [rax]
mov rax, qword [0x258169040]
lea rdx, [rsp + 0x1a0]
mov qword [rsp + 0x1a0], rcx
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x60], 0
mov qword [rax], rdx
xor edx, edx
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rsp + 0x1a8], rax
test rax, rax
je 0x2580ddc90
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x2580ddb68
mov rdx, qword [rsp + 0x60]
mov rax, qword [0x258169060]
sub rdx, 0x10
lea rcx, [rax + 0x68]
call fcn.2580c34f0
cmp qword [rsp + 0x1a8], 0
jne 0x2580ddb68
mov rax, qword [rsp + 0x3f0]
mov r8, qword [0x258168a90]
xor r9d, r9d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x68], rax
call fcn.2580c9dd0
cmp qword [rsp + 0x98], 0
jne 0x2580ddd68
mov rax, qword [rsp + 0x58]
add rsp, 0x3c0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call fcn.2580c95e0
nop dword [rax]
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov rcx, qword [rdx]
mov rdx, qword [0x258168970]
mov qword [rax], rcx
mov rax, qword [0x258168fe0]
mov rax, qword [rax]
mov rax, qword [rax]
cmp rax, rdx
je 0x2580ddbb2
nop dword [rax]
test rax, rax
je 0x2580dda95
mov rax, qword [rax + 0x18]
cmp rax, rdx
jne 0x2580ddba0
mov edx, 0x12d5eea0
lea rcx, [0x2580ed620]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
call fcn.2580d0760
mov qword [rsp + 0x70], rax
mov r13, rax
mov rax, qword [0x258168fe0]
mov r12, qword [rax]
test r12, r12
je 0x2580ddc05
mov rcx, qword [r12 + 0x18]
call fcn.2580c9540
mov r12, rax
mov rbx, qword [fcn.2580e9160]
mov ecx, 1
mov qword [rsp + 0x78], r12
call rbx
mov rdx, r13
mov rcx, rax
call fcn.2580dfd40
mov ecx, 1
call rbx
mov rdx, r12
mov rcx, rax
call fcn.2580dfd40
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x2580ec0a8]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.2580e8830
mov rcx, qword [0x258168fe0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x28]
call fcn.2580c1680
mov rax, qword [0x258169040]
mov rcx, qword [rax]
jmp 0x2580dda95
mov rax, qword [rsp + 0x3f0]
mov dword [rsp + 0x50], 0
mov rcx, qword [rax + 0x10]
call fcn.2580d7460
add eax, 1
mov dword [rsp + 0x4c], eax
cdqe
lea rdx, [rax + rax + 0x10]
mov rax, qword [0x258169060]
lea rcx, [rax + 0x68]
call fcn.2580c27d0
mov qword [rax + 8], 1
add rax, 0x10
mov qword [rsp + 0x60], rax
nop dword [rax + rax]
mov eax, dword [rsp + 0x4c]
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x3f0]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [0x258180ec0]
test eax, eax
je 0x2580ddd80
cmp eax, 0x103
je 0x2580ddd3e
mov ecx, eax
call fcn.2580d7260
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x2580ddaf4
jmp 0x2580ddb0d
mov rcx, qword [0x258168fe0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x28]
call fcn.2580c1680
jmp 0x2580ddb51
mov rcx, qword [rsp + 0x60]
mov r8d, 0xfffd
mov edx, 0x50
call fcn.2580c72c0
mov edx, 0x46c6a5e0
lea rcx, [0x2580ed5e0]
mov r12, rax
call fcn.2580d0760
xor edx, edx
mov rcx, rax
test r12, r12
je 0x2580dddb7
mov rdx, qword [r12]
call fcn.2580c7090
mov r13, rax
test r12, r12
je 0x2580dddcf
mov rdx, r12
mov rcx, rax
call fcn.2580c86f0
mov edx, 0x4ab71fa0
lea rcx, [0x2580ed5a0]
call fcn.2580d0760
xor edx, edx
mov r12, rax
test rax, rax
je 0x2580ddded
mov rdx, qword [rax]
mov rcx, r13
call fcn.2580c7090
mov qword [rsp + 0x40], rax
test r12, r12
je 0x2580dde0a
mov rcx, rax
mov rdx, r12
call fcn.2580c86f0
mov rax, qword [0x258169040]
lea rcx, [rsp + 0x2c0]
mov rdx, qword [rax]
mov qword [rsp + 0x2b0], rdx
lea rdx, [rsp + 0x2b0]
mov qword [rax], rdx
xor edx, edx
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rsp + 0x2b8], rax
test rax, rax
jne 0x2580ddf6a
mov rcx, qword [rsp + 0x40]
mov edx, 0x20019
call fcn.2580d7ca0
mov rdi, qword [rsp + 0x3f0]
mov qword [rdi + 0x18], rax
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
cmp qword [rsp + 0x2b8], 0
jne 0x2580ddf60
mov edx, 0x696e38a0
xor ecx, ecx
call fcn.2580d0760
mov rdx, rax
mov rax, qword [rsp + 0x3f0]
mov rcx, qword [rax + 0x18]
call fcn.2580d7f40
mov rdx, qword [0x258168a90]
mov r12, rax
mov rax, qword [rsp + 0x3f0]
mov rcx, qword [rax + 0x20]
call fcn.2580c9140
mov rbx, rax
test rax, rax
je 0x2580ddecb
add qword [rax - 0x10], 8
mov rax, qword [rsp + 0x3f0]
mov rax, qword [rax + 0x20]
test rax, rax
je 0x2580ddef7
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x2580ddef7
call fcn.2580dfe40
mov rax, qword [rsp + 0x3f0]
mov rdi, qword [rsp + 0x3f0]
mov rcx, r12
mov qword [rax + 0x20], rbx
mov rax, qword [rbx]
lea rdx, [rax + 1]
mov qword [rbx], rdx
mov rdi, qword [rdi + 0x20]
lea rbx, [rax + 2]
mov rsi, qword [rdi + rbx*8]
call fcn.2580c6fe0
mov qword [rdi + rbx*8], rax
test rsi, rsi
je 0x2580ddf4d
mov rax, qword [rsi - 0x10]
lea rcx, [rsi - 0x10]
sub rax, 8
mov qword [rsi - 0x10], rax
cmp rax, 7
ja 0x2580ddf4d
call fcn.2580dfe40
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x2580ddce0
call fcn.2580c9220
jmp 0x2580dde83
mov rax, qword [0x258169040]
mov rdx, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rax, qword [0x258168fe0]
mov rax, qword [rax]
mov rax, qword [rax]
cmp rax, qword [0x258168970]
je 0x2580ddfa2
test rax, rax
je 0x2580ddf60
mov rax, qword [rax + 0x18]
cmp rax, qword [0x258168970]
jne 0x2580ddf90
mov edx, 0x3e46c8e0
lea rcx, [0x2580ed570]
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
call fcn.2580d0760
mov qword [rsp + 0x80], rax
mov r13, rax
mov rax, qword [0x258168fe0]
mov r12, qword [rax]
test r12, r12
je 0x2580ddffe
mov rcx, qword [r12 + 0x18]
call fcn.2580c9540
mov r12, rax
mov rbx, qword [fcn.2580e9160]
mov qword [rsp + 0x88], r12
mov ecx, 1
call rbx
mov rdx, r13
mov rcx, rax
call fcn.2580dfd40
mov ecx, 1
call rbx
mov rdx, r12
mov rcx, rax
call fcn.2580dfd40
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x2580ec0a8]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.2580e8830
mov rcx, qword [0x258168fe0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x28]
call fcn.2580c1680
jmp 0x2580dde74