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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
mov rax, qword [rcx + 0x30]
mov edi, dword [rcx + 0x58]
mov r15, qword [rax]
mov eax, dword [r15 + 0x60]
mov qword [rsp + 0x50], r15
mov rbx, rcx
mov qword [rsp + 0x1f8], rdx
mov dword [rsp + 0x200], r8d
mov qword [rsp + 0x208], r9
mov dword [rsp + 0x3c], edi
cmp eax, edi
jae 0x5e2270
movzx eax, word [rcx + 0x56]
mov esi, 1
xor r14d, r14d
mov word [rsp + 0x9a], ax
mov eax, dword [rcx + 0x5c]
mov dword [rsp + 0x78], eax
mov edx, esi
lea edi, [rsi + 1]
lea r12, [r15 + rdx*4]
mov ebp, dword [r12 + 0x64]
cmp ebp, dword [rsp + 0x3c]
jb 0x5e21a8
cmp edi, 5
je 0x5e2210
mov esi, edi
jmp 0x5e2188
mov dword [rsp + 0x20], 1
mov r8, qword [rsp + 0x210]
lea r13d, [rsi + 3]
mov rcx, rbx
mov rdx, qword [rsp + 0x208]
mov r9d, r13d
call fcn.00597520
mov r14d, eax
test eax, eax
jne 0x5e2330
lea edi, [rsi + 1]
cmp esi, 1
je 0x5e24f8
mov rcx, qword [rbx + 8]
mov dword [r12 + 0x64], 0xffffffff
cmp byte [rbx + 0x3f], 0
jne 0x5e219c
mov r8d, 1
mov edx, r13d
call fcn.00597590
cmp edi, 5
jne 0x5e21a1
nop dword [rax]
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x60]
cmp eax, dword [rsp + 0x3c]
jb 0x5e2368
cmp r14d, 5
je 0x5e2358
mov edx, dword [rsp + 0x200]
test r14d, r14d
sete al
test edx, edx
jne 0x5e228c
mov rcx, qword [rsp + 0x40]
call fcn.005921d0
mov eax, r14d
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], 0
mov eax, 1
xor r14d, r14d
mov edx, dword [rsp + 0x200]
test edx, edx
je 0x5e2246
test al, al
je 0x5e2246
mov rax, qword [rsp + 0x50]
mov r14d, 5
mov eax, dword [rax + 0x60]
cmp eax, dword [rbx + 0x58]
jb 0x5e2246
xor r14d, r14d
cmp dword [rsp + 0x200], 1
jle 0x5e2246
call fcn.005a7100
test eax, eax
jne 0x5e22cb
lea rdx, [rsp + 0xd0]
mov ecx, 4
call fcn.005a7790
mov dword [rsp + 0x20], 4
mov r9d, 4
mov rcx, rbx
mov r8, qword [rsp + 0x210]
mov rdx, qword [rsp + 0x208]
call fcn.00597520
mov r14d, eax
test eax, eax
jne 0x5e2246
cmp dword [rsp + 0x200], 3
je 0x5e2b15
cmp byte [rbx + 0x3f], 0
jne 0x5e2246
mov rcx, qword [rbx + 8]
mov r8d, 4
mov edx, 4
call fcn.00597590
jmp 0x5e2246
cmp eax, 5
jne 0x5e2ac2
mov dword [rsp + 0x3c], ebp
lea edi, [rsi + 1]
mov qword [rsp + 0x208], 0
jmp 0x5e219c
mov eax, 1
xor r14d, r14d
jmp 0x5e2281
mov rax, qword [rsp + 0x50]
mov edi, dword [rax + 0x60]
mov eax, dword [rbx + 0x58]
mov dword [rsp + 0x9c], eax
call fcn.005a7100
test eax, eax
jne 0x5e24e1
mov edx, dword [rsp + 0x9c]
lea esi, [rdx + 0x1000]
mov r14, rdx
sub rsi, 0xfdf
shr rsi, 0xc
movsxd rax, esi
mov dword [rsp + 0x70], esi
shl rax, 4
lea rbp, [rdx + rax + 0x14]
add rbp, rbp
mov rcx, rbp
call fcn.00591bf0
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
je 0x5e24e1
add esi, 1
xor edx, edx
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [r15 + 4], esi
call fcn.005a7100
test eax, eax
jne 0x5e24d0
cmp r14d, 0x1000
mov ecx, 0x1000
cmovbe rcx, r14
add rcx, rcx
call fcn.00591bf0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x5e24d0
lea eax, [rdi + 0x1001]
sub rax, 0xfdf
shr rax, 0xc
cmp esi, eax
jle 0x5e2747
cdqe
mov qword [rsp + 0x1f0], rbx
lea r13, [rsp + 0xa8]
mov qword [rsp + 0x60], rax
shl rax, 5
add rax, qword [rsp + 0x40]
mov rsi, rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0x80]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x1f0]
call fcn.005cc890
mov r14d, eax
test eax, eax
je 0x5e2518
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x1f0]
call fcn.005921d0
mov rcx, qword [rsp + 0x40]
call fcn.005921d0
mov qword [rsp + 0x40], 0
cmp r14d, 5
jne 0x5e2246
xor r14d, r14d
mov eax, 1
jmp 0x5e2281
xor ecx, ecx
call fcn.005921d0
mov rcx, qword [rsp + 0x40]
call fcn.005921d0
mov qword [rsp + 0x40], 0
mov r14d, 7
jmp 0x5e2246
mov eax, dword [rsp + 0x3c]
mov dword [r15 + 0x68], eax
cmp byte [rbx + 0x3f], 0
jne 0x5e21a1
mov rcx, qword [rbx + 8]
jmp 0x5e21f9
mov rax, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x60]
lea rbp, [rax + 4]
mov dword [rsp + 0x7c], ebx
mov eax, dword [rsp + 0xc0]
mov qword [rsp + 0xb8], rbp
cmp dword [rsp + 0x70], ebx
je 0x5e2a50
mov rbx, qword [rsp + 0xb0]
sub rbx, rbp
sar rbx, 2
mov dword [rsp + 0x58], ebx
mov rbx, qword [rsp + 0x40]
mov ecx, eax
add eax, 1
movsxd rdx, dword [rbx + 4]
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0x58]
shl rdx, 5
lea r15, [rdx + rcx*2 + 8]
mov r8, r15
add r8, rbx
mov qword [rsp + 0x68], r8
test eax, eax
jle 0x5e2a8e
lea ecx, [rax - 1]
xor eax, eax
nop dword [rax + rax]
mov rdx, rax
mov word [r8 + rax*2], ax
add rax, 1
cmp rdx, rcx
jne 0x5e2598
mov rdi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x68]
xor eax, eax
mov ecx, 0x1a
mov qword [rsp + 0x90], rsi
mov esi, r14d
mov r14, r13
rep stosq qword [rdi], rax
lea rax, [rsp + 0xc0]
mov r13, r15
mov r15, rax
nop dword [rax]
mov dword [rsp + 0xa4], 1
mov r11, r13
mov qword [rsp + 0xa8], r13
test sil, 1
je 0x5e27f0
mov ebx, 1
lea r12, [rsp + 0xc8]
lea rdi, [rsp + 0xa4]
nop dword [rax]
mov rcx, qword [rsp + 0x48]
mov rax, rbx
mov qword [rsp + 0x20], rdi
mov r9, r14
shl rax, 4
mov qword [rsp + 0x28], rcx
mov rdx, qword [r12 + rax]
mov rcx, rbp
mov r8d, dword [r15 + rax]
call fcn.0058ff20
mov edx, ebx
add rbx, 1
bt esi, edx
jb 0x5e2618
mov r11, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa4]
mov r8d, edx
add esi, 1
add r13, 2
shl r8, 4
mov qword [rsp + r8 + 0xd8], r11
mov dword [rsp + r8 + 0xd0], ecx
cmp esi, dword [rsp + 0x58]
jne 0x5e25e0
lea r12d, [rdx + 1]
mov rsi, qword [rsp + 0x90]
mov r13, r14
cmp r12d, 0xc
ja 0x5e2705
mov r14d, r12d
mov r15, qword [rsp + 0x48]
mov ebx, dword [rsp + 0x58]
lea rdi, [rsp + 0xa4]
shl r14, 4
add r14, qword [rsp + 0x88]
jmp 0x5e26ce
add r12d, 1
add r14, 0x10
cmp r12d, 0xd
je 0x5e26fe
bt ebx, r12d
jae 0x5e26c0
mov rdx, qword [r14 + 8]
mov qword [rsp + 0x28], r15
mov r9, r13
mov rcx, rbp
mov qword [rsp + 0x20], rdi
mov r8d, dword [r14]
add r12d, 1
add r14, 0x10
call fcn.0058ff20
cmp r12d, 0xd
jne 0x5e26ce
mov ecx, dword [rsp + 0xa4]
mov eax, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0x7c]
mov dword [rsi + 0x20], ecx
add rsi, 0x20
add qword [rsp + 0x60], 1
mov dword [rsi + 4], eax
mov rax, qword [rsp + 0x68]
mov qword [rsi - 0x10], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsi - 8], rax
cmp dword [rsp + 0x70], ebx
jg 0x5e2470
mov rbx, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x48]
call fcn.005921d0
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov r8, qword [rsp + 0x210]
mov rdx, qword [rsp + 0x208]
mov r9d, 3
call fcn.00597520
mov r14d, eax
test eax, eax
jne 0x5e24b9
mov rax, qword [rsp + 0x50]
mov esi, dword [rax + 0x60]
mov dword [rsp + 0x48], esi
mov esi, dword [rsp + 0x3c]
mov dword [rax + 0x80], esi
mov eax, dword [rsp + 0x218]
sar eax, 2
and eax, 3
mov dword [rsp + 0x80], eax
je 0x5e2800
mov rcx, qword [rbx + 0x10]
mov edx, dword [rsp + 0x80]
call fcn.005919d0
mov r14d, eax
test eax, eax
je 0x5e2800
cmp byte [rbx + 0x3f], 0
jne 0x5e222b
mov rcx, qword [rbx + 8]
mov r8d, 1
mov edx, 3
call fcn.00597590
jmp 0x5e222b
mov ecx, 1
xor edx, edx
jmp 0x5e265b
movzx esi, word [rsp + 0x9a]
mov rcx, qword [rbx + 8]
mov eax, esi
mov edx, esi
shl eax, 0x10
and edx, 0xfe00
and eax, 0x10000
or eax, edx
lea rdx, [rsp + 0xd0]
movsxd rsi, eax
mov eax, dword [rsp + 0x78]
mov qword [rsp + 0x58], rsi
mov r15, rsi
imul rax, rsi
mov qword [rsp + 0xb0], rax
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r14d, eax
test eax, eax
jne 0x5e27c5
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0xd0], rax
jge 0x5e2882
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
test rax, rax
je 0x5e2882
lea r8, [rsp + 0xb0]
mov edx, 5
call qword [rax + 0x50]
mov rbp, qword [rsp + 0x40]
mov dword [rsp + 0x68], r15d
xor esi, esi
mov dword [rsp + 0x7c], r14d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], rax
lea eax, [r15 + 0x18]
cdqe
mov qword [rsp + 0x60], rax
nop word [rax + rax]
movsxd r10, dword [rbp + 4]
mov r13d, dword [rbp]
mov r14, r10
shl r10, 5
lea eax, [r14 - 1]
lea r15, [rbp + r10]
add r10, qword [rsp + 0x70]
shl rax, 5
sub r10, rax
test r14d, r14d
jle 0x5e29d8
mov rax, r15
mov edi, 0xffffffff
nop dword [rax]
movsxd rdx, dword [rax - 0x18]
mov r8d, dword [rax]
cmp r8d, edx
jle 0x5e292d
mov r11, qword [rax - 8]
mov r9, qword [rax - 0x10]
jmp 0x5e290f
lea ecx, [rdx + 1]
add rdx, 1
mov dword [rax - 0x18], ecx
cmp r8d, edx
jle 0x5e292d
movzx r12d, word [r9 + rdx*2]
mov rcx, r12
mov r12d, dword [r11 + r12*4]
cmp r13d, r12d
jae 0x5e2900
cmp r12d, edi
jae 0x5e292d
add ecx, dword [rax + 4]
mov edi, r12d
mov esi, ecx
sub rax, 0x20
cmp r10, rax
jne 0x5e28e8
mov dword [rbp], edi
mov r13d, edi
cmp edi, 0xffffffff
je 0x5e2b38
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax + 0x160]
test eax, eax
jne 0x5e2a68
cmp dword [rsp + 0x3c], esi
setb dl
cmp dword [rsp + 0x48], esi
setae al
or dl, al
jne 0x5e28d4
cmp dword [rsp + 0x78], edi
jb 0x5e28d4
mov rcx, qword [rbx + 0x10]
lea edx, [rsi - 1]
mov r15d, dword [rsp + 0x68]
imul rdx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov r8d, r15d
lea r9, [rdx + 0x38]
mov rdx, qword [rsp + 0x220]
call qword [rax + 0x10]
test eax, eax
jne 0x5e29cd
mov rcx, qword [rbx + 8]
lea r9d, [rdi - 1]
mov rdx, qword [rsp + 0x220]
mov r8d, r15d
imul r9, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
je 0x5e28b0
mov r14d, eax
jmp 0x5e27c5
mov rax, qword [rsp + 0x40]
mov r14d, dword [rsp + 0x7c]
mov dword [rax], 0xffffffff
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 8]
mov rax, qword [rax]
mov edx, dword [rax + 0x10]
mov rax, qword [rcx]
cmp edx, dword [rsp + 0x3c]
je 0x5e2ad0
test rax, rax
je 0x5e2a20
xor r8d, r8d
mov edx, 0x25
call qword [rax + 0x50]
test eax, eax
je 0x5e2a1c
cmp eax, 0xc
jne 0x5e29cd
mov rcx, qword [rbx + 8]
mov rax, qword [rsp + 0x50]
mov edi, dword [rsp + 0x3c]
mov dword [rax + 0x60], edi
cmp byte [rbx + 0x3f], 0
mov eax, 1
jne 0x5e2281
mov r8d, 1
mov edx, 3
call fcn.00597590
jmp 0x5e2235
mov ebx, dword [rsp + 0x9c]
sub ebx, eax
mov dword [rsp + 0x58], ebx
jmp 0x5e2559
mov rax, qword [rsp + 0x1f8]
cmp byte [rax + 0x61], 1
sbb r14d, r14d
and r14d, 2
add r14d, 7
cmp byte [rbx + 0x3f], 0
je 0x5e27cf
jmp 0x5e2246
mov rdi, qword [rsp + 0x88]
mov ecx, 0x1a
xor eax, eax
mov dword [rsp + 0xa4], 0
mov qword [rsp + 0xa8], 0
mov r12d, 1
rep stosq qword [rdi], rax
jmp 0x5e2698
mov qword [rsp + 0x40], 0
jmp 0x5e2246
mov edx, dword [rbx + 0x5c]
imul rdx, qword [rsp + 0x58]
call qword [rax + 0x20]
test eax, eax
jne 0x5e29cd
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rbx + 8]
test r8d, r8d
je 0x5e2b0d
mov edx, dword [rsp + 0x80]
call fcn.005919d0
test eax, eax
jne 0x5e29cd
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
jmp 0x5e2a03
mov edx, dword [rsp + 0xd0]
mov rcx, rbx
call fcn.005972c0
mov rcx, qword [rbx + 0x10]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r14d, eax
jmp 0x5e230a
mov r14d, dword [rsp + 0x7c]
jmp 0x5e29e8