Function at 0x5c8020
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, 0xe8
mov esi, 0xffffffff
mov rax, qword [rcx]
mov word [rsp + 0x6a], si
mov rsi, qword [rcx + 0x18]
mov r13, rcx
mov qword [rsp + 0x138], rdx
mov rcx, qword [rax + 8]
movzx edx, byte [rsi + 0x10]
mov qword [rsp + 0x58], rax
lea rax, [rdx*8]
sub rax, rdx
shl rax, 4
lea r12, [rcx + rax + 8]
mov rcx, qword [r13 + 8]
mov rax, qword [r12 + 0x20]
mov rbx, qword [r12 + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x5c8708
movzx r15d, word [rax + 0x4a]
mov ebp, 1
xor edi, edi
cmp r15w, 0xa
jg 0x5c8590
xor eax, eax
cmp qword [r13 + 0x20], 0
mov edx, 1
je 0x5c85ae
test bpl, bpl
je 0x5c82f8
test dl, dl
je 0x5c82f8
mov dword [rsp + 0x30], 1
nop dword [rax + rax]
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x5c8104
movzx edx, byte [r12 + 0x3c]
mov ecx, dword [r12 + 0x44]
mov r8, qword [rsp + 0x38]
shr dl, 5
and edx, 1
call fcn.005c60e0
test eax, eax
je 0x5c83d0
movzx eax, byte [rbx + 0x65]
and eax, 1
mov byte [rsp + 0x28], al
jne 0x5c83d0
mov rax, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x138]
xor r8d, r8d
xor r9d, r9d
movzx eax, word [rax]
mov dword [rsi + 0x2c], 0
mov byte [rsi + 0x11], 0
mov word [rsp + 0x36], ax
mov word [rsi + 0x16], ax
movzx eax, byte [rbx + 0x64]
mov dword [rsi + 0x18], 0
mov word [rsi + 0x1c], r8w
mov word [rsi + 0x12], r9w
mov qword [rsi], rcx
mov qword [rsi + 0x20], rbx
test al, 4
jne 0x5c8430
mov rdx, qword [r13]
mov rbp, qword [rdx + 0x10]
test rbp, rbp
je 0x5c8430
mov ecx, dword [rbp]
test ecx, ecx
jle 0x5c821e
mov r8d, dword [r12 + 0x44]
mov qword [rsp + 0x48], rsi
xor r15d, r15d
mov qword [rsp + 0x50], r12
mov r12, rbp
mov esi, r8d
nop word cs:[rax + rax]
mov rax, r15
shl rax, 5
mov rdi, qword [r12 + rax + 8]
test rdi, rdi
jne 0x5c81d1
jmp 0x5c87ef
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x6423ca
mov eax, dword [rdi + 4]
test eax, 0x41000
je 0x5c81f0
test eax, 0x40000
jne 0x5c81c0
mov rdi, qword [rdi + 0x10]
jmp 0x5c81c8
cmp byte [rdi], 0xa4
je 0x5c83e0
mov rbp, qword [rbx + 0x50]
test rbp, rbp
jne 0x5c8330
add r15, 1
cmp dword [r12], r15d
jg 0x5c81a0
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
movzx eax, byte [rbx + 0x64]
mov edx, eax
and edx, 3
cmp dl, 3
je 0x5c87be
xor ecx, ecx
nop
test al, 0x20
je 0x5c8460
mov dword [rsi + 0x28], 0x240
xor r8d, r8d
test ecx, ecx
jne 0x5c8450
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x40], 0x80
jne 0x5c8260
cmp qword [rbx + 0x48], 0
je 0x5c8520
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov byte [rsi + 0x11], al
movsx edx, word [rbx + 0x5c]
movsx ecx, word [rcx + 0x4c]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x36]
lea eax, [rcx + rax + 1]
mov word [rsi + 0x14], ax
test r8, r8
jne 0x5c8480
movsx r8d, word [rsp + 0x36]
mov edi, r8d
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.00599180
mov rdx, rsi
mov rcx, r13
call fcn.0059f310
mov word [rsi + 0x16], di
test eax, eax
jne 0x5c82f8
xor r9d, r9d
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov dword [r13 + 0x28], 0
call fcn.005c7630
cmp dword [r13 + 0x28], 1
jne 0x5c82f0
mov rcx, qword [rsp + 0x40]
or dword [rcx + 0x40], 0x100
nop word [rax + rax]
cmp qword [r12 + 0x68], 0
je 0x5c8310
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add dword [rsp + 0x30], 1
mov rbx, qword [rbx + 0x28]
test eax, eax
jne 0x5c82f8
test rbx, rbx
jne 0x5c80d8
jmp 0x5c82f8
cmp word [rbx + 0x5e], 0
je 0x5c8206
xor r14d, r14d
jmp 0x5c8351
movzx eax, word [rbx + 0x5e]
add r14, 1
cmp eax, r14d
jle 0x5c8206
mov rax, qword [rbx + 8]
cmp word [rax + r14*2], 0xfffe
jne 0x5c8340
mov rax, r14
mov r8d, esi
mov rcx, rdi
shl rax, 5
mov rdx, qword [rbp + rax + 8]
call fcn.005c6f70
test eax, eax
jne 0x5c8340
movzx eax, byte [rbx + 0x64]
mov rsi, qword [rsp + 0x48]
mov ecx, 1
mov r12, qword [rsp + 0x50]
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x5c8230
movzx eax, byte [rsp + 0x30]
mov dword [rsi + 0x28], 0x100
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
movsx r8d, word [rsp + 0x36]
mov byte [rsi + 0x11], al
lea eax, [r8 + 0x10]
mov edi, r8d
mov word [rsi + 0x14], ax
jmp 0x5c829e
xor eax, eax
jmp 0x5c82f0
cmp esi, dword [rdi + 0x2c]
jne 0x5c81f9
movzx edx, word [rdi + 0x30]
test dx, dx
js 0x5c8378
movzx ecx, word [rbx + 0x5e]
test cx, cx
je 0x5c8206
mov rax, qword [rbx + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x5c841d
add rax, 2
cmp rcx, rax
je 0x5c8206
cmp dx, word [rax]
jne 0x5c8410
jmp 0x5c8378
mov edx, eax
xor ecx, ecx
and edx, 3
cmp dl, 3
jne 0x5c8230
mov dword [rsi + 0x28], 0x100
jmp 0x5c83a9
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x28], al
jmp 0x5c8260
mov r8, qword [r12 + 0x58]
and r8, qword [rbx + 0x68]
cmp r8, 1
sbb edx, edx
and edx, 0x40
add edx, 0x200
mov dword [rsi + 0x28], edx
jmp 0x5c8242
lea edi, [rcx + 0x10]
mov rcx, qword [rsp + 0x58]
mov r14d, dword [r12 + 0x44]
mov edx, dword [rcx + 0x7c]
test edx, edx
jle 0x5c850c
xor r11d, r11d
mov qword [rsp + 0x28], rsi
mov rsi, rbx
mov ebx, r14d
mov r15, r11
mov r14, rcx
jmp 0x5c84c7
lea eax, [rdi - 1]
sub edi, 0x14
test byte [rbp + 0x14], 0x82
cmove edi, eax
add r15, 1
cmp dword [r14 + 0x7c], r15d
jle 0x5c8500
mov rbp, r15
mov r8, rsi
mov edx, ebx
shl rbp, 6
add rbp, qword [r14 + 0x88]
mov rcx, qword [rbp]
call fcn.005989f0
test eax, eax
je 0x5c8500
movzx eax, word [rbp + 0x10]
test ax, ax
jg 0x5c84b0
add edi, eax
add r15, 1
cmp dword [r14 + 0x7c], r15d
jg 0x5c84c7
nop dword [rax]
mov rbx, rsi
mov rsi, qword [rsp + 0x28]
movzx eax, word [rsi + 0x14]
movsx edx, di
movsx ecx, ax
call fcn.00596280
mov word [rsi + 0x14], ax
jmp 0x5c8295
test r8, r8
jne 0x5c82be
test al, 4
jne 0x5c82be
movsx eax, word [rbx + 0x5c]
movsx ecx, word [rcx + 0x4c]
cmp ax, cx
jge 0x5c82be
mov rdx, qword [rsp + 0x58]
test byte [rdx + 0x3c], 4
jne 0x5c82be
cmp byte [0x0065d2e7], 0
je 0x5c82be
mov rdx, qword [rdx]
mov rdx, qword [rdx]
test byte [rdx + 0x5c], 0x20
jne 0x5c82be
mov edx, eax
mov byte [rsi + 0x11], 0
shl edx, 4
sub edx, eax
mov eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x36]
lea eax, [rcx + rax + 1]
mov word [rsi + 0x14], ax
jmp 0x5c8295
movsx rcx, r15w
call fcn.0058b040
mov edx, 1
lea edi, [rax - 0x21]
xor eax, eax
cmp qword [r13 + 0x20], 0
jne 0x5c80ba
mov rcx, qword [rsp + 0x58]
test byte [rcx + 0x3c], 0x20
jne 0x5c80ba
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x5c80ba
cmp qword [r12 + 0x68], 0
jne 0x5c80ba
movzx ecx, byte [r12 + 0x40]
test cl, 1
jne 0x5c80ba
mov r10, qword [rsp + 0x40]
test byte [r10 + 0x40], 0x80
jne 0x5c80ba
and ecx, 0x28
jne 0x5c80ba
mov rcx, qword [rsp + 0x38]
mov r14, qword [rcx + 0x20]
movsxd rcx, dword [rcx + 0x14]
shl rcx, 6
add rcx, r14
mov qword [rsp + 0x28], rcx
cmp r14, rcx
jae 0x5c80ba
add r15d, edi
lea eax, [r15 - 0xa]
mov word [rsp + 0x30], ax
jmp 0x5c86ed
xor r8d, r8d
mov rdx, r12
mov rcx, r14
call fcn.0059aa60
test eax, eax
je 0x5c86fb
mov rax, qword [rsi + 0x38]
mov r11d, 1
mov qword [rsi + 0x20], 0
mov word [rsi + 0x18], r11w
mov dword [rsi + 0x2c], 1
mov qword [rax], r14
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0
je 0x5c87dc
movzx eax, word [rsp + 0x30]
test ax, ax
mov ecx, 0
mov r10d, 0x2b
mov edx, 0x2b
cmovs eax, ecx
mov word [rsi + 0x16], r10w
movsx ecx, di
mov word [rsi + 0x12], ax
call fcn.00596280
mov dword [rsi + 0x28], 0x4000
mov rdx, rsi
mov rcx, r13
mov word [rsi + 0x14], ax
mov rax, qword [rsp + 0x138]
or rax, qword [r14 + 0x30]
mov qword [rsi], rax
call fcn.0059f310
test eax, eax
sete dl
add r14, 0x40
cmp qword [rsp + 0x28], r14
jbe 0x5c80ba
test dl, dl
je 0x5c80ba
mov rax, qword [r14 + 0x30]
test qword [rsi + 8], rax
je 0x5c8639
mov edx, 1
xor eax, eax
jmp 0x5c86d6
mov rax, qword [rsp + 0x40]
test byte [rax + 0x40], 0x80
je 0x5c8728
mov rbx, qword [rax + 0x10]
movzx r15d, word [rax + 0x4a]
test rbx, rbx
setne bpl
jmp 0x5c809b
lea rdx, [rsp + 0x70]
mov rax, rbx
mov ecx, 0xe
xor ebx, ebx
mov rdi, rdx
mov word [rsp + 0x6e], bx
rep stosq qword [rdi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x6a]
mov byte [rsp + 0xd2], 5
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0xce], 0x10001
mov qword [rsp + 0x88], rcx
movzx eax, word [rcx + 0x4c]
movzx r15d, word [rcx + 0x4a]
or byte [rsp + 0xd4], 3
mov word [rsp + 0xcc], ax
mov word [rsp + 0x6c], r15w
test byte [r12 + 0x40], 1
jne 0x5c87cf
mov rax, qword [r12 + 0x20]
mov ebp, 1
mov rbx, rdx
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
jmp 0x5c809b
mov dword [rsi + 0x28], 0x100
mov byte [rsp + 0x28], 0
jmp 0x5c83a9
mov ebp, 1
mov rbx, rdx
jmp 0x5c809b
test byte [rax + 0x40], 2
jne 0x5c8680
lea eax, [r15 + 0x1c]
jmp 0x5c8685
jmp 0x6423ca
movzx eax, byte [pe_dos_header]
ud2