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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
movsxd rax, dword [r8 + 8]
xor r13d, r13d
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
test eax, eax
jle 0x1801d9f43
mov rcx, rax
mov rax, qword [r8]
cmp dword [rax + rcx*4 - 4], r13d
jne 0x1801d9f43
lea r9, str.Z:metasploit_payloadscmeterpreterdepslibresslcrypto_bn_bn_div.c
lea ecx, [r13 + 3]
lea r8d, [r13 + 0x6b]
mov edx, 0xfff
mov dword [rsp + 0x20], 0x86
call fcn.1801727e0
xor eax, eax
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ebx, r13d
mov qword [rsp + 0x88], r14
cmp dword [rsp + 0xe8], ebx
mov r14d, 1
cmovne ebx, r14d
mov dword [rsp + 0x30], ebx
cmp dword [r9 + 8], r13d
jne 0x1801d9f99
lea r9, str.Z:metasploit_payloadscmeterpreterdepslibresslcrypto_bn_bn_div.c
lea ecx, [r14 + 2]
lea r8d, [r14 + 0x66]
mov edx, 0xfff
mov dword [rsp + 0x20], __WSAFDIsSet
call fcn.1801727e0
xor eax, eax
jmp 0x1801da445
test ebx, ebx
jne 0x1801d9fd8
mov rdx, r9
mov rcx, r8
call fcn.18018a210
test eax, eax
jns 0x1801d9fd8
test rbp, rbp
je 0x1801d9fc1
mov rdx, rsi
mov rcx, rbp
call fcn.180189c40
test rax, rax
je 0x1801d9f92
test r12, r12
je 0x1801d9fd0
xor edx, edx
mov rcx, r12
call fcn.18018a060
mov eax, r14d
jmp 0x1801da445
mov rbp, qword [rsp + 0xe0]
mov qword [rsp + 0x80], r15
mov rcx, rbp
call fcn.18018f5e0
mov rcx, rbp
call fcn.18018f500
mov rcx, rbp
mov r15, rax
mov qword [rsp + 0x58], rax
call fcn.18018f500
mov rcx, rbp
mov r14, rax
mov qword [rsp + 0x70], rax
call fcn.18018f500
mov rbp, rax
test r12, r12
jne 0x1801da035
mov rcx, qword [rsp + 0xe0]
call fcn.18018f500
mov r12, rax
mov qword [rsp + 0x60], rax
test r15, r15
je 0x1801da42e
test r14, r14
je 0x1801da42e
test rbp, rbp
je 0x1801da42e
test r12, r12
je 0x1801da42e
mov rcx, rdi
call fcn.180189ee0
and eax, 0x8000001f
jge 0x1801da06f
dec eax
or eax, 0xffffffe0
inc eax
mov r15d, 0x20
mov rdx, rdi
mov rcx, rbp
sub r15d, eax
mov r8d, r15d
call fcn.18018e730
test eax, eax
je 0x1801da42e
add r15d, 0x20
mov rdx, rsi
mov rcx, r14
mov r8d, r15d
mov dword [rbp + 0x10], r13d
mov dword [rsp + 0x3c], r15d
call fcn.18018e730
test eax, eax
je 0x1801da42e
mov dword [r14 + 0x10], r13d
test ebx, ebx
je 0x1801da151
mov ecx, dword [rbp + 8]
mov edx, dword [r14 + 8]
lea eax, [rcx + 1]
cmp edx, eax
jg 0x1801da124
lea edx, [rcx + 2]
cmp edx, dword [r14 + 0xc]
jg 0x1801da0d9
mov rax, r14
jmp 0x1801da0e1
mov rcx, r14
call fcn.18018a410
test rax, rax
je 0x1801da42e
mov eax, dword [rbp + 8]
movsxd rcx, dword [r14 + 8]
add eax, 2
cmp ecx, eax
jge 0x1801da118
lea rdx, [rcx*4]
mov rax, qword [r14]
inc ecx
lea rdx, [rdx + 4]
mov dword [rdx + rax - 4], r13d
mov eax, dword [rbp + 8]
add eax, 2
cmp ecx, eax
jl 0x1801da100
mov eax, dword [rbp + 8]
add eax, 2
mov dword [r14 + 8], eax
jmp 0x1801da151
inc edx
cmp edx, dword [r14 + 0xc]
jg 0x1801da131
mov rax, r14
jmp 0x1801da139
mov rcx, r14
call fcn.18018a410
test rax, rax
je 0x1801da42e
movsxd rcx, dword [r14 + 8]
mov rax, qword [r14]
mov dword [rax + rcx*4], r13d
inc dword [r14 + 8]
movsxd r13, dword [rbp + 8]
mov edx, dword [r14 + 8]
xor r9d, r9d
mov dword [rsp + 0x50], r9d
mov rax, qword [r14]
mov dword [rsp + 0x48], r13d
mov ebx, edx
lea r8, [r13*4]
mov dword [rsp + 0x38], r13d
sub ebx, r13d
mov qword [rsp + 0x78], r8
movsxd rcx, ebx
lea rcx, [rax + rcx*4]
mov qword [rsp + 0x40], rcx
mov eax, dword [r14 + 0xc]
sub eax, ebx
mov dword [rsp + 0x4c], eax
mov eax, dword [r14 + 0x14]
or eax, 2
mov dword [rsp + 0x54], eax
mov rcx, qword [rbp]
mov esi, dword [rcx + r8 - 4]
cmp r13d, 1
jne 0x1801da1b7
mov dword [rsp + 0x34], r9d
jmp 0x1801da1c0
mov eax, dword [rcx + r13*4 - 8]
mov dword [rsp + 0x34], eax
lea eax, [rdx - 1]
lea edx, [rbx + 1]
movsxd rcx, eax
mov rax, qword [r14]
lea r15, [rax + rcx*4]
mov eax, dword [rdi + 0x10]
mov rcx, qword [rsp + 0xd0]
xor eax, dword [rcx + 0x10]
mov dword [r12 + 0x10], eax
cmp edx, dword [r12 + 0xc]
jg 0x1801da1ef
mov rax, r12
jmp 0x1801da1f7
mov rcx, r12
call fcn.18018a410
test rax, rax
je 0x1801da42e
mov edx, dword [rsp + 0x30]
mov eax, ebx
sub eax, edx
dec ebx
mov dword [r12 + 8], eax
mov rax, qword [r12]
movsxd rcx, ebx
lea rdi, [rax + rcx*4]
mov rax, qword [rsp + 0x58]
lea ecx, [r13 + 1]
cmp ecx, dword [rax + 0xc]
jle 0x1801da236
mov edx, ecx
mov rcx, rax
call fcn.18018a410
mov edx, dword [rsp + 0x30]
test rax, rax
je 0x1801da42e
test edx, edx
jne 0x1801da275
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.18018a210
test eax, eax
js 0x1801da270
mov rcx, qword [rsp + 0x40]
mov r8, qword [rbp]
mov r9d, r13d
mov rdx, rcx
call fcn.1801d3090
mov dword [rdi], 1
jmp 0x1801da275
dec dword [r12 + 8]
cmp dword [r12 + 8], 0
jne 0x1801da288
mov dword [r12 + 0x10], 0
jmp 0x1801da28c
sub rdi, 4
test ebx, ebx
jle 0x1801da388
mov r14d, dword [rsp + 0x38]
mov r12, qword [rsp + 0x58]
sub rdi, r15
mov qword [rsp + 0x68], rdi
mov r13d, ebx
nop dword [rax]
mov ecx, dword [r15]
mov ebx, dword [r15 - 4]
cmp ecx, esi
jne 0x1801da2c0
or edi, 0xffffffff
jmp 0x1801da309
mov r8d, esi
mov edx, ebx
call fcn.1801d1880
mov r8d, dword [rsp + 0x34]
mov r9d, dword [r15 - 8]
mov ecx, eax
mov edx, eax
mov edi, eax
imul ecx, esi
sub ebx, ecx
imul rdx, r8
mov ecx, ebx
shl rcx, 0x20
or rcx, r9
cmp rdx, rcx
jbe 0x1801da309
add ebx, esi
dec edi
cmp ebx, esi
jb 0x1801da309
mov eax, ebx
sub rdx, r8
shl rax, 0x20
or rax, r9
cmp rdx, rax
ja 0x1801da2f0
mov rdx, qword [rbp]
mov rcx, qword [r12]
mov r9d, edi
mov r8d, r14d
call fcn.1801d25d0
mov rcx, qword [r12]
mov rdx, qword [rsp + 0x78]
mov dword [rdx + rcx], eax
mov rcx, qword [rsp + 0x40]
lea r9d, [r14 + 1]
sub rcx, 4
mov qword [rsp + 0x40], rcx
mov r8, qword [r12]
mov rdx, rcx
call fcn.1801d3090
test eax, eax
je 0x1801da367
mov rcx, qword [rsp + 0x40]
mov r8, qword [rbp]
mov r9d, r14d
mov rdx, rcx
dec edi
call fcn.1801d17b0
test eax, eax
je 0x1801da367
inc dword [r15]
mov rax, qword [rsp + 0x68]
sub r15, 4
mov dword [rax + r15 + 4], edi
dec r13
jne 0x1801da2b0
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
mov edx, dword [r14 + 8]
test edx, edx
jle 0x1801da3b5
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [r14]
lea r9, [rax + rcx*4]
nop dword [rax]
mov eax, dword [r9]
lea r9, [r9 - 4]
test eax, eax
jne 0x1801da3b1
dec edx
test edx, edx
jg 0x1801da3a0
mov dword [r14 + 8], edx
mov rdi, qword [rsp + 0xc8]
test rdi, rdi
je 0x1801da3e6
mov rax, qword [rsp + 0xd0]
mov r8d, dword [rsp + 0x3c]
mov rdx, r14
mov ebx, dword [rax + 0x10]
mov rcx, rdi
call fcn.18018e960
cmp dword [rdi + 8], 0
je 0x1801da3e6
mov dword [rdi + 0x10], ebx
cmp dword [rsp + 0x30], 0
je 0x1801da41a
mov edx, dword [r12 + 8]
test edx, edx
jle 0x1801da41a
lea eax, [rdx - 1]
movsxd rcx, eax
mov rax, qword [r12]
lea r8, [rax + rcx*4]
mov eax, dword [r8]
lea r8, [r8 - 4]
test eax, eax
jne 0x1801da415
dec edx
test edx, edx
jg 0x1801da404
mov dword [r12 + 8], edx
mov rcx, qword [rsp + 0xe0]
call fcn.18018f440
mov eax, 1
jmp 0x1801da43d
mov rcx, qword [rsp + 0xe0]
call fcn.18018f440
xor eax, eax
mov r15, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x88]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret