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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 4]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov rcx, rax
call fcn.140057d40
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140058b9e
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x3c]
and eax, 0xfffe
cdqe
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x3c]
or eax, 1
cdqe
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
add eax, dword [rsp + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
jmp 0x1400589da
mov eax, dword [rsp + 0x40]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x140058b56
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0
jne 0x1400589fb
mov dword [rsp + 0x60], 1
jmp 0x140058a53
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0
jne 0x140058a11
mov dword [rsp + 0x60], 0xffffffff
jmp 0x140058a53
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x58]
mov r9d, dword [rax + 0x14]
mov rax, qword [rsp + 0x58]
mov r8, qword [rax + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x40]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x140058a6d
cmp dword [rsp + 0x60], 0
jne 0x140058ada
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x58], rax
jae 0x140058ada
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cqo
mov ecx, 0x50
idiv rcx
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x40]
xor eax, 1
cdqe
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx + rax*4]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x140058b51
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0
je 0x140058aee
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
cqo
mov ecx, 0x50
idiv rcx
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov dword [rdx + rcx*4], eax
mov eax, dword [rsp + 0x40]
xor eax, 1
cdqe
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx + rax*4]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x1400589cd
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 4]
imul rax, rax, 0x50
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax + 0x18], 0
jne 0x140058b88
mov dword [rsp + 0x64], 1
jmp 0x140058b90
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
cmp dword [rsp + 0x38], 0
jne 0x140058bb8
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax + 0x13]
mov dword [rsp + 0x68], eax
jmp 0x140058bc0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
add rsp, 0x78
ret