Function at 0x140010ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rbp, r9
mov ebx, r8d
mov r15d, edx
mov r13, rcx
mov rax, qword [0x140076008]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rax, fcn.1400222f0
mov qword [rcx + 0x40], rax
mov ecx, 0x10001
call fcn.1400178e0
mov rsi, rax
mov r14d, r15d
shr r14d, 0x1f
add r14d, r15d
sar r14d, 1
mov r12d, r15d
sub r12d, r14d
cmp r12d, r14d
jge 0x140010f3a
lea rcx, str.pbits___qbits
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x7d
call fcn.1400439b4
mov rdi, qword [rsp + 0x170]
test bl, bl
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xb0], rsi
je 0x140011060
lea ecx, [r12 - 0x21]
mov eax, ecx
shr eax, 0x1f
lea edx, [r12 + rax]
add edx, 0xffffffdf
sar edx, 1
sub ecx, edx
mov dword [rsp + 0x28], ecx
lea eax, [rdx - 0x21]
shr eax, 0x1f
mov qword [rsp + 0x30], rdx
add eax, edx
add eax, 0xffffffdf
sar eax, 1
mov dword [rsp + 0x24], eax
cmp r12d, 0xe7
setge al
mov dword [rsp + 0x2c], eax
jl 0x140010fd8
mov rcx, qword [rbp]
mov rdx, rdi
mov r8d, dword [rsp + 0x24]
call qword [rcx]
mov qword [rsp + 0x88], rax
mov rcx, qword [rbp]
mov rdx, rdi
mov r8, qword [rsp + 0x30]
call qword [rcx]
mov qword [rsp + 0x80], rax
mov rcx, qword [rbp]
mov rdx, rdi
mov r8d, dword [rsp + 0x28]
call qword [rcx]
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp]
mov rdx, rdi
mov r8d, r12d
call qword [rcx]
mov qword [rsp + 0x50], rax
lea esi, [r14 - 0x21]
mov eax, esi
shr eax, 0x1f
mov rbx, rdi
lea edi, [r14 + rax]
add edi, 0xffffffdf
sar edi, 1
sub esi, edi
lea eax, [rdi - 0x21]
shr eax, 0x1f
lea r8d, [rdi + rax]
add r8d, 0xffffffdf
sar r8d, 1
cmp r15d, 0x1ce
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x3c], r8d
jl 0x14001108d
mov rcx, qword [rbp]
mov rdx, rbx
call qword [rcx]
mov qword [rsp + 0x70], rax
mov rcx, qword [rbp]
mov rdx, rbx
mov r8d, edi
call qword [rcx]
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp]
mov rdx, rbx
mov r8d, esi
call qword [rcx]
mov qword [rsp + 0x60], rax
mov al, 1
mov dword [rsp + 0x20], eax
jmp 0x140011095
mov rcx, qword [rbp]
mov rdx, rdi
mov r8d, r12d
call qword [rcx]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x140011098
mov dword [rsp + 0x20], 0
mov rdi, rbx
mov rbx, rbp
mov rcx, qword [rbp]
mov rdx, rdi
mov r8d, r14d
call qword [rcx]
mov qword [rsp + 0x98], rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov ecx, 0x20
call fcn.140017860
mov rbp, rax
mov esi, 0x2000fff
xor edi, edi
jmp 0x1400110f3
mov r8d, 0x2000
sub r8d, ecx
cmovb r8d, edi
mov rcx, rbp
mov rdx, rbp
call fcn.140017d00
add esi, 1
cmp esi, 0x2001fff
je 0x14001110d
lea ecx, [rsi - 0x1ffffff]
mov eax, esi
xor edx, edx
div ecx
lea ecx, [rsi - 0x1fffffd]
cmp eax, ecx
jb 0x1400110d0
mov ecx, eax
jmp 0x1400110d0
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0x58], rbx
xor r13d, r13d
xor ecx, ecx
call fcn.1400178e0
mov rsi, rax
mov ecx, 0x20
call fcn.140017860
mov rbx, rax
mov r8d, 1
mov rcx, rax
mov qword [rsp + 0x90], rbp
mov rdx, rbp
call fcn.14001a530
lea r8, [fcn.14000a650]
mov rcx, rsi
mov rdx, rbx
call fcn.140021090
mov rbp, rax
mov rcx, rsi
call fcn.140017960
mov rcx, rbx
call fcn.140017960
mov rcx, rbp
xor edx, edx
call fcn.140017f90
mov dword [rsp + 0x44], eax
mov r8d, 1
mov rcx, rbp
mov rdx, rbp
call fcn.140018a50
mov esi, 0x2000fff
xor edi, edi
jmp 0x1400111fa
sub r15d, r12d
mov rcx, rbp
call fcn.140017fc0
mov rbx, rax
add ebx, r12d
mov rcx, rbp
mov rdx, r15
call fcn.140019760
xor eax, 0xfffffffe
add eax, 1
xor r14d, r13d
and r14d, eax
xor r13d, r14d
xor ebx, edi
and ebx, eax
xor edi, ebx
mov rcx, rbp
mov rdx, rbp
mov r8, r15
call fcn.1400189c0
add esi, 1
cmp esi, 0x2001fff
je 0x14001122e
lea r14d, [rsi - 0x1ffffff]
mov eax, esi
xor edx, edx
div r14d
lea r12d, [rsi - 0x1fffffd]
cmp eax, r12d
jb 0x140011217
mov r12d, eax
mov r15d, 0x2000
cmp r12d, 0x2000
jb 0x1400111b0
mov r12d, 0x2000
jmp 0x1400111b0
mov rcx, rbp
call fcn.140017960
mov rcx, qword [rsp + 0x90]
call fcn.140017960
cmp r13d, 0xfff
jbe 0x14001126b
cmp r13d, 0x2000
jb 0x140011284
lea rcx, str.a___hi
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x115
jmp 0x14001127f
lea rcx, str.lo___a
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x114
call fcn.1400439b4
cmp edi, 0xfff
jbe 0x1400112b4
cmp edi, 0x2000
mov r14, qword [rsp + 0x58]
jb 0x1400112d2
lea rcx, str.b___hi
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x117
call fcn.1400439b4
jmp 0x1400112d2
lea rcx, str.lo___b
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x116
call fcn.1400439b4
mov r14, qword [rsp + 0x58]
mov eax, edi
imul eax, r13d
cmp eax, 0x1ffffff
ja 0x1400112f8
lea rcx, str.a__b___minproduct
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x118
call fcn.1400439b4
lea eax, [r13 + 2]
cmp edi, eax
jae 0x140011319
lea rcx, str.b___a__min_separation
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x119
call fcn.1400439b4
mov eax, edi
xor eax, r13d
mov esi, dword [rsp + 0x44]
neg esi
and esi, eax
xor r13d, esi
xor esi, edi
mov eax, dword [rsp + 0x2c]
mov byte [rsp + 0xc0], al
mov rbx, qword [rsp + 0xa0]
mov dword [rsp + 0xc4], ebx
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xd4], r13d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xc0]
mov rdx, r14
mov rbp, qword [rsp + 0x170]
mov r8, rbp
call fcn.1400115b0
mov r15, rax
mov eax, dword [rsp + 0x20]
mov byte [rsp + 0xc0], al
movzx eax, word [rsp + 0xfd]
mov word [rsp + 0xc1], ax
mov al, byte [rsp + 0xff]
mov byte [rsp + 0xc3], al
mov rdi, qword [rsp + 0xa8]
mov dword [rsp + 0xc4], edi
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xc8], eax
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0xd4], esi
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xc0]
mov rdx, r14
mov r8, rbp
call fcn.1400115b0
mov r12, rax
cmp ebx, edi
jne 0x140011494
mov rcx, r12
mov rdx, r15
call fcn.1400196d0
mov rcx, r15
mov rdx, r12
mov r8d, eax
call fcn.140017a40
jmp 0x1400114bc
mov rcx, r15
mov rdx, r12
call fcn.1400196d0
test eax, eax
jne 0x1400114bc
lea rcx, str.mp_cmp_hs_p__q_
lea rdx, str._home_simon_mem_.build_workdirs_bob_aew3xwii_putty_keygen_rsa.c
mov r8d, 0x92
call fcn.1400439b4
mov rcx, r15
mov rdx, r12
call fcn.14001a4a0
mov r14, rax
mov rcx, r15
call fcn.140017f00
mov rbx, rax
mov r8d, 1
mov rcx, rax
mov rdx, rax
call fcn.1400189c0
mov rcx, r12
call fcn.140017f00
mov rdi, rax
mov r8d, 1
mov rcx, rax
mov rdx, rax
call fcn.1400189c0
mov rcx, rbx
mov rdx, rdi
call fcn.14001a4a0
mov rbp, rax
mov rcx, rbx
call fcn.140017960
mov rcx, rdi
call fcn.140017960
mov rsi, qword [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
call fcn.14001c130
mov rdi, rax
mov rcx, rbp
call fcn.140017960
mov rcx, r12
mov rdx, r15
call fcn.14001c130
mov rbx, qword [rsp + 0xb8]
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], r15
mov qword [rbx + 0x28], r12
mov qword [rbx + 0x30], rax
mov rcx, r14
call fcn.140018050
mov dword [rbx], eax
lea ecx, [rax + 7]
add eax, 0xe
test ecx, ecx
cmovns eax, ecx
sar eax, 3
mov dword [rbx + 4], eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140037270
mov eax, 1
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret