Function at 0x140058890
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, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400588d3
cmp qword [rbx + 0x10], 0x11
jb 0x1400588c2
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140058903
cmp qword [rbx + 0x10], 0x11
jb 0x1400588f2
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov r8, qword [rsi + 0x2d8]
test r8, r8
je 0x140058927
cmp qword [rsi + 0x2e0], 0
je 0x140058927
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsi + 0x2f0]
test rdi, rdi
je 0x140058993
mov rbx, qword [rsi + 0x300]
test rbx, rbx
je 0x140058978
lea r14, [rdi + 8]
jmp 0x140058959
add r14, 0x18
dec rbx
je 0x140058978
mov r8, qword [r14 - 8]
test r8, r8
je 0x140058950
cmp qword [r14], 0
je 0x140058950
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x140058950
cmp qword [rsi + 0x2f8], 0
je 0x140058993
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
lea rcx, [rsi + 0x58]
call fcn.140058b60
lea rcx, [rsi + 0x88]
call fcn.140058b60
lea rcx, [rsi + 0xb8]
call fcn.140058b60
mov r8, qword [rsi + 0x310]
test r8, r8
je 0x1400589d8
cmp qword [rsi + 0x318], 0
je 0x1400589d8
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov r8, qword [rsi + 0x2a8]
test r8, r8
je 0x1400589fc
cmp qword [rsi + 0x2b0], 0
je 0x1400589fc
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rdi, qword [rsi + 0x290]
mov r15, qword [rsi + 0x2a0]
test r15, r15
je 0x140058a83
mov rbx, qword [rsi + 0x288]
mov rax, qword [rsi + 0x298]
xor edx, edx
cmp rax, rdi
mov rcx, rdi
cmovb rcx, rdx
mov r8, rax
sub r8, rcx
mov r12, rdi
sub r12, r8
lea r13, [r8 + r15]
cmp r12, r15
cmovb r13, rdi
mov r14, r15
sub r14, r12
cmovb r14, rdx
sub r13, r8
jne 0x140058b19
cmp r12, r15
jae 0x140058a83
add rbx, 0x10
jmp 0x140058a69
add rbx, 0x20
dec r14
je 0x140058a83
cmp qword [rbx], 0
je 0x140058a60
mov r8, qword [rbx - 8]
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x140058a60
test rdi, rdi
je 0x140058a9d
mov r8, qword [rsi + 0x288]
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi + 0xd8], 0
je 0x140058ab3
lea rcx, [rsi + 0xe0]
call fcn.1400436e0
cmp byte [rsi + 0x1d1], 2
je 0x140058ad4
lea rcx, [rsi + 0x138]
call fcn.1400436e0
lea rcx, [rsi + 0x180]
call fcn.1400436e0
cmp byte [rsi + 0x281], 2
jne 0x140058aee
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsi + 0x1e8]
call fcn.1400436e0
add rsi, 0x230
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400436e0
shl rax, 5
shl rcx, 5
sub rax, rcx
lea rbp, [rbx + rax]
add rbp, 0x10
jmp 0x140058b3d
add rbp, 0x20
dec r13
je 0x140058a53
cmp qword [rbp], 0
je 0x140058b30
mov r8, qword [rbp - 8]
mov rcx, qword [0x1401d2138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x140058b30