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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
cmp dword [rcx + 0x51c], 1
lea r13, [rcx + 0x758]
mov eax, 0x48000001
mov qword [rbp + 0x67], r13
mov dword [rbp - 0x75], eax
mov r14, rcx
mov dword [rbp - 0x6d], eax
mov dword [rbp - 0x65], eax
mov dword [rbp - 0x5d], eax
mov dword [rbp - 0x55], eax
mov dword [rbp - 0x19], eax
mov dword [rbp - 1], eax
mov dword [rbp + 7], eax
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x17], eax
mov dword [rsp + 0x20], 0x7948c031
mov dword [rsp + 0x24], 0x24448b1b
mov dword [rsp + 0x28], 0x244c8b04
mov dword [rsp + 0x2c], 0x24548b08
mov dword [rsp + 0x30], 0xc281520c
mov dword [rsp + 0x34], 0x200
mov dword [rsp + 0x38], 0x7501e983
mov dword [rbp - 0x7d], 0xc3d0fff4
mov dword [rbp - 0x79], 0x48ec8148
mov dword [rbp - 0x71], 0x3024ac89
mov dword [rbp - 0x69], 0x38249c89
mov dword [rbp - 0x61], 0x2024bc89
mov dword [rbp - 0x59], 0x2824b489
mov dword [rbp - 0x51], 0x8948e689
mov dword [rbp - 0x4d], 0x200b8cf
mov dword [rbp - 0x49], 0x894c0000
mov dword [rbp - 0x45], 0x148d48c1
mov dword [rbp - 0x41], 0x48d4c01
mov dword [rbp - 0x3d], 0xc8d4d02
mov dword [rbp - 0x39], 0x1c8d4900
mov dword [rbp - 0x35], 0x9c894801
mov dword [rbp - 0x31], 0x10024
mov dword [rbp - 0x2d], 0xc3014800
mov dword [rbp - 0x29], 0x249c8948
mov dword [rbp - 0x25], 0x108
mov dword [rbp - 0x21], 0x48c30148
mov dword [rbp - 0x1d], 0x10249c89
mov dword [rbp - 0x15], 0x8948c301
mov dword [rbp - 0x11], 0x118249c
mov dword [rbp - 0xd], 0xd7ff0000
mov dword [rbp - 9], 0x48f48948
mov dword [rbp - 5], 0x2824b48b
mov dword [rbp + 3], 0x2024bc8b
mov dword [rbp + 0xb], 0x38249c8b
mov dword [rbp + 0x13], 0x3024ac8b
mov dword [rbp + 0x1b], 0x148c481
mov dword [rbp + 0x1f], 0xc30000
je 0x408e23
mov r13, qword [r13]
mov qword [rbp + 0x67], r13
lea rsi, [r13 + 0x1918]
xor ecx, ecx
movsxd rdi, dword [rsi + 0x3c]
add rdi, rsi
mov qword [rbp + 0x6f], rdi
call qword [r14 + 0x40]
mov qword [rbp + 0x77], rax
movsxd rcx, dword [rax + 0x3c]
movzx edx, word [rcx + rax + 4]
cmp word [rdi + 4], dx
jne 0x409165
mov edx, dword [rdi + 0x50]
xor ecx, ecx
mov eax, 0x1000
mov r8d, 0x3000
add edx, eax
lea r9d, [rcx + 0x40]
call qword [r14 + 0x48]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x409165
mov r8d, dword [rdi + 0x54]
mov rdx, rsi
mov rcx, rax
call fcn.004098e3
movzx r15d, word [rdi + 0x14]
xor eax, eax
add r15, rdi
cmp ax, word [rdi + 6]
jae 0x408ec7
mov eax, r12d
lea rcx, [rax + rax*4]
mov edx, dword [r15 + rcx*8 + 0x2c]
mov r8d, dword [r15 + rcx*8 + 0x28]
add rdx, rsi
mov ecx, dword [r15 + rcx*8 + 0x24]
add rcx, rbx
call fcn.004098e3
movzx eax, word [rdi + 6]
inc r12d
cmp r12d, eax
jb 0x408e9a
mov eax, dword [rdi + 0x90]
xor r15d, r15d
test eax, eax
je 0x408f3e
lea rsi, [rbx + rax]
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x408f3e
mov ecx, eax
add rcx, rbx
call qword [r14 + 0x30]
mov r15d, dword [rsi]
mov r13, rax
mov r12d, dword [rsi + 0x10]
add r15, rbx
add r12, rbx
jmp 0x408f20
mov rax, qword [r14 + 0x38]
test rcx, rcx
jns 0x408f08
movzx edx, cx
jmp 0x408f0f
lea rdx, [rcx + 2]
add rdx, rbx
mov rcx, r13
call rax
add r15, 8
mov qword [r12], rax
add r12, 8
mov rcx, qword [r15]
test rcx, rcx
jne 0x408efa
mov eax, dword [rsi + 0x20]
add rsi, 0x14
test eax, eax
jne 0x408edf
mov rdi, qword [rbp + 0x6f]
xor r15d, r15d
mov r13, qword [rbp + 0x67]
mov eax, dword [rdi + 0xf0]
test eax, eax
je 0x408fb4
lea rsi, [rax + 4]
add rsi, rbx
mov eax, dword [rsi]
test eax, eax
je 0x408fb4
mov ecx, eax
add rcx, rbx
call qword [r14 + 0x30]
mov r15d, dword [rsi + 0xc]
mov r13, rax
mov r12d, dword [rsi + 8]
add r15, rbx
add r12, rbx
jmp 0x408f97
mov rax, qword [r14 + 0x38]
test rcx, rcx
jns 0x408f7f
movzx edx, cx
jmp 0x408f86
lea rdx, [rcx + 2]
add rdx, rbx
mov rcx, r13
call rax
add r15, 8
mov qword [r12], rax
add r12, 8
mov rcx, qword [r15]
test rcx, rcx
jne 0x408f71
add rsi, 0x20
mov eax, dword [rsi]
test eax, eax
jne 0x408f55
mov rdi, qword [rbp + 0x6f]
xor r15d, r15d
mov r13, qword [rbp + 0x67]
mov eax, dword [rdi + 0xb0]
test eax, eax
je 0x409035
mov rsi, rbx
lea r9, [rbx + rax]
sub rsi, qword [rdi + 0x30]
cmp dword [r9], r15d
je 0x409035
mov r12d, 0x1000
lea r10, [r9 + 8]
jmp 0x409021
movzx eax, word [r10]
mov ecx, 0xf000
movzx r11d, ax
and ax, cx
mov ecx, 0xa000
cmp ax, cx
jne 0x409013
mov r8d, dword [r9]
and r11d, 0xfff
lea rax, [r11 + r8]
mov rdx, qword [rax + rbx]
lea rax, [r11 + r8]
add rdx, rsi
mov qword [rax + rbx], rdx
jmp 0x40901d
cmp r11w, r12w
jae 0x409156
add r10, 2
mov eax, dword [r9 + 4]
add rax, r9
cmp r10, rax
jne 0x408fda
mov r9, r10
cmp dword [r10], r15d
jne 0x408fd4
mov eax, dword [rdi + 0xd0]
test eax, eax
je 0x409063
mov rsi, qword [rax + rbx + 0x18]
test rsi, rsi
je 0x409063
jmp 0x40905b
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call rax
lea rsi, [rsi + 8]
mov rax, qword [rsi]
test rax, rax
jne 0x40904b
mov eax, dword [rdi + 0x28]
add rax, rbx
cmp dword [r13], 3
jne 0x409154
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
lea rdx, [r13 + 0x604]
mov qword [rbp + 0x6f], rdx
cmp word [rdx], r15w
je 0x409156
mov eax, dword [rdi + 0x88]
test eax, eax
je 0x409156
add rax, rbx
mov edi, dword [rax + 0x18]
test edi, edi
je 0x409156
mov esi, dword [rax + 0x1c]
mov r12d, dword [rax + 0x20]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r12, rbx
add r15, rbx
dec edi
mov ecx, dword [r12 + rdi*4]
add rcx, rbx
call fcn.0040963f
xor ecx, ecx
test eax, eax
je 0x4090e4
test edi, edi
je 0x409156
mov rdx, qword [rbp + 0x6f]
jmp 0x4090c6
movzx eax, word [r15 + rdi*2]
mov esi, dword [rsi + rax*4]
add rsi, rbx
je 0x409156
mov r9d, 0x40
mov r8d, 0x3000
lea r15d, [r9 + 0x7c]
mov edx, r15d
call qword [r14 + 0x48]
mov rdi, rax
test rax, rax
je 0x409156
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.004098e3
mov rax, qword [rbp + 0x67]
mov rcx, rsi
mov edx, dword [rax + 0x804]
lea r8, [rax + 0x808]
call rdi
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call fcn.00409903
xor edx, edx
mov r8d, 0xc000
mov rcx, rdi
call qword [r14 + 0x50]
jmp 0x409156
call rax
xor edx, edx
mov r8d, 0xc000
mov rcx, rbx
call qword [r14 + 0x50]
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret