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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rsi, qword [rcx + 0x10]
mov r13d, r9d
xor ebp, ebp
lea r9, [rax + 0x10]
cmp r8d, r13d
mov dword [rax + 0x10], ebp
mov r14d, r8d
mov rbx, rdx
cmove r9, rbp
mov rdi, rcx
lea r8d, [rbp + 3]
call fcn.18003b8a0
mov rcx, rbx
mov r15d, eax
call fcn.180039920
movzx ecx, byte [rdi + 0x1f]
inc dword [rdi + 0x70]
mov byte [rsp + 0xa0], al
test cl, cl
jne 0x18003c6ca
inc dword [rdi + 0x54]
mov r12d, dword [rdi + 0x54]
jmp 0x18003c6d7
dec cl
movzx eax, cl
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x24]
mov rdx, qword [rbx + 0x10]
mov r8d, r12d
mov rcx, rdi
call fcn.18003eee0
cmp r15d, 5
jne 0x18003ca25
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
mov r13, qword [rbx + 0x20]
call fcn.180039790
mov rbx, qword [rsi + 0x30]
mov qword [rsp + 0x48], rax
mov edx, dword [rbx + 0x78]
mov dword [rsp + 0x30], edx
lea ecx, [rdx + 1]
mov dword [rbx + 0x78], ecx
lea ecx, [rdx - 1]
test edx, ecx
jne 0x18003c745
mov rcx, qword [rbx]
lea eax, [rdx*2 + 1]
mov rdx, qword [rbx + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.180005330
mov edx, dword [rsp + 0x30]
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18003c75b
movsxd rax, edx
mov dword [rcx + rax*4], 0xffffffff
mov eax, edx
mov ebx, ebp
not eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0xb8], r14d
je 0x18003c7a2
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18003c77f
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x18003c78b
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
mov r9d, r12d
mov dword [rsp + 0x20], ebx
mov r8d, r12d
mov edx, 0x55
mov rcx, rsi
call fcn.1800258c0
mov r15d, ebp
cmp dword [r13], ebp
jle 0x18003c97d
mov rax, rbp
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov rdx, qword [r13 + 8]
lea r8, [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rax + rdx]
call fcn.18003ed40
mov r14d, eax
test ebx, ebx
je 0x18003c861
mov rcx, qword [r13 + 8]
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + rcx]
nop dword [rax]
movzx edx, byte [r8]
lea ecx, [rdx + 0x63]
cmp cl, 1
ja 0x18003c802
mov r8, qword [r8 + 0x10]
jmp 0x18003c7f0
cmp dl, 0x9f
jne 0x18003c80c
movzx edx, byte [r8 + 0x36]
cmp dl, 0x61
je 0x18003c861
cmp dl, 0x83
jbe 0x18003c84a
cmp dl, 0x86
jbe 0x18003c861
cmp dl, 0x9a
jne 0x18003c84a
test dword [r8 + 4], 0x100000
jne 0x18003c84a
movsx rax, word [r8 + 0x30]
test ax, ax
js 0x18003c861
lea rdx, [rax + rax*2]
mov rax, qword [r8 + 0x40]
add rdx, rdx
mov rcx, qword [rax + 8]
cmp byte [rcx + rdx*8 + 0x28], bpl
jne 0x18003c861
mov r9d, r14d
mov dword [rsp + 0x20], ebx
mov r8d, ebx
mov edx, 0x55
mov rcx, rsi
call fcn.1800258c0
mov eax, dword [r13]
dec eax
cmp r15d, eax
jl 0x18003c8d4
mov eax, dword [rsp + 0xb8]
cmp eax, dword [rsp + 0xb0]
jne 0x18003c8d4
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov r14d, dword [rsp + 0xb0]
mov edx, 0x4e
mov r9d, r14d
mov rcx, rsi
call fcn.1800258c0
mov r8, qword [rsp + 0x48]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rsi
call fcn.180025f00
mov r8, qword [rsi + 8]
test r8, r8
je 0x18003c928
movsxd rax, dword [rsi + 0x3c]
movzx edx, byte [rsp + 0xa0]
or dl, 0x10
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], dl
jmp 0x18003c928
mov r9d, dword [rsp + 0x34]
mov r8d, r12d
mov edx, 0x4f
mov dword [rsp + 0x20], r14d
mov rcx, rsi
call fcn.1800258c0
mov r8, qword [rsp + 0x48]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rsi
call fcn.180025f00
mov rdx, qword [rsi + 8]
mov r14d, dword [rsp + 0xb0]
test rdx, rdx
je 0x18003c928
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
movzx eax, byte [rsp + 0xa0]
mov byte [rdx + rcx*8 - 0x15], al
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x18003c962
movzx r8d, byte [rdi + 0x1f]
cmp r8b, 8
jae 0x18003c962
mov ecx, ebp
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], edx
je 0x18003c95e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003c944
mov dword [rdi + r8*4 + 0x24], edx
inc byte [rdi + 0x1f]
jmp 0x18003c962
mov byte [rax + 6], 1
mov rax, qword [rsp + 0x40]
inc r15d
add rax, 0x28
mov qword [rsp + 0x40], rax
cmp r15d, dword [r13]
jl 0x18003c7c0
test ebx, ebx
je 0x18003c9b3
mov r9d, dword [rsp + 0xb8]
mov r8d, ebx
mov edx, 0x4c
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1800258c0
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov r9d, r14d
mov rcx, rsi
lea edx, [r8 + 0x10]
call fcn.1800258c0
movsxd rax, dword [rsp + 0x30]
mov rdx, qword [rsi + 0x30]
test eax, eax
js 0x18003c9d6
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x18003c9d6
mov rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
test ebx, ebx
je 0x18003ccc6
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18003ccc6
mov ecx, ebp
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], ebx
je 0x18003ca1c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18003ca00
mov dword [rdi + rdx*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x18003ccc6
mov byte [rax + 6], 1
jmp 0x18003ccc6
mov rcx, qword [rbx + 0x10]
nop dword [rax]
movzx edx, byte [rcx]
lea eax, [rdx + 0x63]
cmp al, 1
ja 0x18003ca40
mov rcx, qword [rcx + 0x10]
jmp 0x18003ca30
cmp dl, 0x9f
jne 0x18003ca49
movzx edx, byte [rcx + 0x36]
cmp dl, 0x61
je 0x18003cb1f
cmp dl, 0x83
jbe 0x18003ca96
cmp dl, 0x86
jbe 0x18003cb1f
cmp dl, 0x9a
jne 0x18003ca96
test dword [rcx + 4], 0x100000
jne 0x18003ca96
movsx rax, word [rcx + 0x30]
test ax, ax
js 0x18003cb1f
lea rdx, [rax + rax*2]
mov rax, qword [rcx + 0x40]
add rdx, rdx
mov rcx, qword [rax + 8]
cmp byte [rcx + rdx*8 + 0x28], bpl
jne 0x18003cb1f
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov rcx, rsi
cmp r13d, r14d
jne 0x18003cab4
mov r9d, r13d
mov edx, 0x4c
call fcn.1800258c0
jmp 0x18003cb1f
xor r9d, r9d
lea edx, [r9 + 0x4d]
call fcn.1800258c0
mov r9d, dword [rsp + 0xb0]
mov edx, 0x6c
mov r8d, dword [rbx + 0x2c]
mov rcx, rsi
mov r14d, eax
mov dword [rsp + 0x20], ebp
call fcn.1800258c0
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov r9d, r13d
mov rcx, rsi
lea edx, [r8 + 0x10]
call fcn.1800258c0
mov edx, dword [rsi + 0x3c]
cmp edx, r14d
jbe 0x18003cb0d
mov rax, qword [rsi + 8]
lea rcx, [r14 + r14*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov r14d, dword [rsp + 0xb0]
mov dword [rax + 0x64], ecx
mov dword [rsp + 0x20], ebp
mov r8d, r12d
mov rcx, rsi
cmp r15d, 1
jne 0x18003cb58
mov r9d, r14d
lea edx, [r15 + 0x25]
call fcn.1800258c0
mov r8d, dword [rbx + 0x2c]
lea edx, [r15 + 0x45]
mov r9d, r14d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.1800258c0
jmp 0x18003ccc6
mov r9d, 1
lea edx, [r9 + 0x2f]
call fcn.1800258c0
mov r9d, 1
lea r8, [rsp + 0xa0]
mov edx, eax
mov rcx, rsi
call fcn.180025f00
mov rcx, rsi
mov r8d, dword [rbx + 0x2c]
mov dword [rsp + 0x20], r12d
cmp dword [rsp + 0xa8], ebp
jne 0x18003cc03
mov r9d, r14d
mov edx, 0x44
call fcn.1800258c0
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x18003cbf0
cmp byte [rcx + 0x50], bpl
jne 0x18003cbf0
test eax, eax
jns 0x18003cbbc
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.180025c40
mov qword [rbx + 0x10], rbp
mov dword [rbx + 0x10], 1
mov byte [rbx + 1], 0xf2
jmp 0x18003ccc6
mov edx, 0xfffffff2
lea r8d, [rdx + 0xf]
call fcn.180025c40
jmp 0x18003ccc6
xor r9d, r9d
lea edx, [r9 + 0x45]
call fcn.1800258c0
mov r8, qword [rsi + 8]
mov edx, eax
mov rcx, qword [rsi]
mov r14d, eax
test r8, r8
je 0x18003cc60
cmp byte [rcx + 0x50], bpl
jne 0x18003cc60
test r14d, r14d
jns 0x18003cc30
mov edx, dword [rsi + 0x3c]
dec edx
movsxd rax, edx
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.180025c40
mov qword [rbx + 0x10], rbp
mov dword [rbx + 0x10], 1
mov byte [rbx + 1], 0xf2
jmp 0x18003cc6e
mov edx, 0xfffffff2
lea r8d, [rdx + 0xf]
call fcn.180025c40
mov r8d, dword [rsp + 0xa8]
mov r9d, r13d
mov edx, 0x4c
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.1800258c0
mov r9d, dword [rsp + 0xb0]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 0x10]
call fcn.1800258c0
mov edx, dword [rsi + 0x3c]
cmp edx, r14d
jbe 0x18003ccbc
mov rax, qword [rsi + 8]
lea rcx, [r14 + r14*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
test r12d, r12d
je 0x18003ccff
movzx ecx, byte [rdi + 0x1f]
cmp cl, 8
jae 0x18003ccff
lea rax, [rdi + 0x88]
nop dword [rax + rax]
cmp dword [rax + 0xc], r12d
je 0x18003ccfb
inc ebp
add rax, 0x14
cmp ebp, 0xa
jl 0x18003cce0
mov dword [rdi + rcx*4 + 0x24], r12d
inc byte [rdi + 0x1f]
jmp 0x18003ccff
mov byte [rax + 6], 1
mov rcx, rdi
call fcn.18003d440
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret