Function at 0x100401f20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
cmp byte [0x100415010], 0
mov qword [rsp + 0x130], r8
mov r13, rcx
mov rdi, rdx
jne 0x100402306
lea r15, [rsp + 0xc0]
lea rbx, [rsp + 0xb0]
xor r8d, r8d
mov ebp, 1
mov rdx, r15
mov rcx, rbx
lea r12, [rsp + 0x70]
call qword [sym.imp.msys_gmp_10.dll___gmpz_inits]
lea rax, [rsp + 0x90]
mov edx, 2
mov rsi, qword [sym.imp.msys_gmp_10.dll___gmpz_init_set_si]
mov rcx, rax
mov qword [rsp + 0x50], rax
lea r14, [rsp + 0xa0]
call rsi
mov edx, 2
mov rcx, r12
call rsi
lea rax, [rsp + 0x80]
mov edx, 2
mov rcx, rax
mov qword [rsp + 0x48], rax
call rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.msys_gmp_10.dll___gmpz_init_set_ui]
mov qword [rsp + 0x58], 1
mov edx, 1
mov rcx, r13
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
je 0x1004022a0
mov rsi, qword [sym.imp.msys_gmp_10.dll___gmpz_mod]
jmp 0x100402002
sub rbp, 1
je 0x10040209f
mov r8, r12
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_mul]
mov r8, r13
mov rdx, rbx
mov rcx, r12
call rsi
mov r8, rdi
mov rdx, r12
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_add_ui]
mov rdx, qword [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_sub]
mov r8, rbx
mov rdx, r14
mov rcx, r15
call qword [sym.imp.msys_gmp_10.dll___gmpz_mul]
mov r8, r13
mov rdx, r15
mov rcx, r14
call rsi
mov rax, rbp
and eax, 0x1f
cmp rax, 1
jne 0x100401ff8
mov rdx, r14
mov rcx, rbx
mov r8, r13
call qword [sym.imp.msys_gmp_10.dll___gmpz_gcd]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
jne 0x100402130
mov rcx, qword [rsp + 0x50]
mov rdx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_set]
sub rbp, 1
jne 0x100402002
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msys_gmp_10.dll___gmpz_set]
mov rax, qword [rsp + 0x58]
lea rdx, [rax + rax]
mov qword [rsp + 0x60], rdx
test rax, rax
je 0x100402107
mov qword [rsp + 0x68], r14
mov r14, rbp
mov rbp, rax
nop dword [rax + rax]
add r14, 1
mov r8, r12
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_mul]
mov r8, r13
mov rdx, rbx
mov rcx, r12
call rsi
mov r8, rdi
mov rdx, r12
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_add_ui]
cmp rbp, r14
jne 0x1004020d0
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rdx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_set]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
jmp 0x100402002
mov qword [rsp + 0x60], rbp
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], r12
mov r12, rbx
mov rbx, qword [rsp + 0x48]
nop word [rax + rax]
mov r8, rbp
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_mul]
mov r8, r13
mov rdx, r12
mov rcx, rbp
call rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbp
call qword [sym.imp.msys_gmp_10.dll___gmpz_add_ui]
mov r8, rbp
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_sub]
mov rdx, r12
mov rcx, r12
mov r8, r13
call qword [sym.imp.msys_gmp_10.dll___gmpz_gcd]
mov edx, 1
mov rcx, r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
je 0x100402150
mov qword [rsp + 0x48], rbx
mov rbx, r12
mov rdx, r13
mov rcx, r13
mov qword [rsp + 0x50], rbp
mov r12, qword [rsp + 0x68]
mov r8, rbx
mov rbp, qword [rsp + 0x60]
call qword [sym.imp.msys_gmp_10.dll___gmpz_divexact]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
jle 0x100402203
mov edx, 0x17ded79
mov rcx, rbx
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
js 0x10040227e
mov rcx, rbx
call fcn.100402580
test al, al
jne 0x10040227e
cmp byte [0x100415010], 0
jne 0x1004022e1
mov r8, qword [rsp + 0x130]
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.100401f20
mov edx, 1
mov rcx, r13
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
jle 0x100402254
mov edx, 0x17ded79
mov rcx, r13
call qword [sym.imp.msys_gmp_10.dll___gmpz_cmp_ui]
test eax, eax
js 0x100402290
mov rcx, r13
call fcn.100402580
test al, al
jne 0x100402290
mov r8, r13
mov rdx, r12
mov rcx, r12
call rsi
mov rcx, qword [rsp + 0x48]
mov r8, r13
mov rdx, rcx
call rsi
mov rcx, qword [rsp + 0x50]
mov r8, r13
mov rdx, rcx
call rsi
jmp 0x100401fd5
mov rcx, qword [rsp + 0x130]
mov rdx, rbx
call fcn.1004016f0
jmp 0x100402224
mov rcx, qword [rsp + 0x130]
mov rdx, r13
call fcn.1004016f0
mov rax, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov r8, rbx
mov rdx, r15
mov qword [rsp + 0x30], 0
mov rcx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.msys_gmp_10.dll___gmpz_clears]
nop
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msys_2.0.dll___getreent
mov r8d, 0x2b
mov edx, 1
lea rcx, str._composite_factor__restarting_pollard_rho_
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x100402210
call sub.msys_2.0.dll___getreent
mov r8, rdi
lea rdx, str._pollard_rho___lu__
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
jmp 0x100401f4e