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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov eax, dword [rsp + 0x100]
mov r14, rdx
mov rbx, qword [rcx + 0x10]
mov r13, rcx
mov r12, qword [rcx]
mov dword [rsp + 0x5c], eax
inc eax
mov dword [rsp + 0x100], eax
mov qword [rsp + 0x88], r12
mov byte [rsp + 0x48], 1
lea ebp, [rax + 1]
mov eax, dword [rcx + 0x54]
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x3c], ebp
inc ebp
mov esi, ebp
mov dword [rsp + 0x44], ebp
lea r15d, [rbp + 1]
add ebp, 2
mov dword [rsp + 0x54], ebp
inc ebp
mov dword [rsp + 0x50], ebp
inc ebp
cmp eax, ebp
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x30], ebp
cmovle eax, ebp
xor edi, edi
mov dword [rcx + 0x54], eax
test rbx, rbx
jne 0x14005ba2f
call fcn.140041580
mov qword [r13 + 0x10], rax
mov rbx, rax
test rax, rax
je 0x14005ba0e
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.1400416c0
cmp qword [r13 + 0x1c0], rdi
jne 0x14005ba26
mov rax, qword [r13]
test byte [rax + 0x4c], 8
jne 0x14005ba26
mov byte [r13 + 0x23], 1
test rbx, rbx
je 0x14005c424
test r14, r14
je 0x14005c424
cmp dword [r14 + 0x3c], edi
je 0x14005c424
mov r10, qword [r14]
mov edx, 7
test r10, r10
je 0x14005baa9
mov r8, r10
lea r9, [0x1401490c8]
lea r11, [0x1401232c0]
movzx eax, byte [r8]
dec edx
test al, al
je 0x14005ba87
mov ecx, eax
movzx eax, byte [r9]
movzx eax, byte [rax + r11]
cmp byte [rcx + r11], al
jne 0x14005ba87
inc r8
inc r9
test edx, edx
jg 0x14005ba60
dec edx
test edx, edx
js 0x14005c424
movzx eax, byte [r9]
movzx edx, byte [rax + r11]
movzx eax, byte [r8]
movzx ecx, byte [rax + r11]
cmp ecx, edx
je 0x14005c424
mov rdx, qword [r14 + 0x70]
mov edi, 0xfff0bdc0
mov dword [rsp + 0x38], edi
test rdx, rdx
je 0x14005bae8
mov ecx, dword [r12 + 0x28]
xor eax, eax
mov dword [rsp + 0x38], eax
mov edi, eax
test ecx, ecx
jle 0x14005bae8
mov rax, qword [r12 + 0x20]
add rax, 0x18
cmp qword [rax], rdx
je 0x14005bae4
inc edi
add rax, 0x20
cmp edi, ecx
jl 0x14005bad5
mov dword [rsp + 0x38], edi
mov rax, qword [r12 + 0x20]
xor r9d, r9d
movsxd rcx, edi
mov r8, r10
shl rcx, 5
lea edx, [r9 + 0x1c]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, r13
call fcn.14005e200
test eax, eax
jne 0x14005c424
mov rax, qword [r14]
xor r9d, r9d
mov r8d, dword [r14 + 0x3c]
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.14005e2c0
mov eax, dword [rsp + 0x108]
mov r9, r14
mov r12d, eax
mov dword [rsp + 0x60], eax
inc eax
mov dword [rsp + 0x20], 0x36
mov dword [rsp + 0x108], eax
mov r8d, edi
mov edx, r12d
lea ecx, [rax + 1]
mov eax, dword [r13 + 0x50]
cmp eax, ecx
cmovle eax, ecx
mov rcx, r13
mov dword [r13 + 0x50], eax
call fcn.14006ff30
mov rdi, qword [r14]
xor eax, eax
mov r9d, r15d
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov rcx, rbx
lea edx, [rax + 0x61]
call fcn.1400416c0
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbx
call fcn.140041d00
mov r15, qword [r14 + 0x10]
mov qword [rsp + 0x68], r15
test r15, r15
je 0x14005c325
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x14005bbc2
cmp rax, r15
jne 0x14005c302
mov eax, dword [rsp + 0x48]
mov ecx, 0
cmp qword [r15 + 0x48], 0
movzx eax, al
cmove eax, ecx
test byte [r14 + 0x48], 0x20
mov dword [rsp + 0x48], eax
je 0x14005bbf8
mov eax, dword [r15 + 0x5c]
and al, 3
cmp al, 2
jne 0x14005bbf8
movzx esi, word [r15 + 0x56]
mov rdi, r14
mov r14d, esi
jmp 0x14005bc0f
test byte [r15 + 0x5c], 8
mov rdi, r15
movzx esi, word [r15 + 0x58]
mov r14d, esi
je 0x14005bc0f
movzx r14d, word [r15 + 0x56]
mov r9d, dword [rsp + 0x54]
lea r12d, [r14 - 1]
mov rdi, qword [rdi]
xor r8d, r8d
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov dword [rsp + 0x74], r12d
lea edx, [r8 + 0x61]
call fcn.1400416c0
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbx
call fcn.140041d00
mov eax, dword [r13 + 0x54]
lea ecx, [r12 + rbp]
mov r8d, dword [rsp + 0x108]
cmp eax, ecx
mov edx, 0x36
cmovle eax, ecx
mov rcx, rbx
mov dword [r13 + 0x54], eax
mov eax, dword [rsp + 0x38]
mov r9d, dword [r15 + 0x50]
mov dword [rsp + 0x20], eax
call fcn.1400416c0
mov rdi, qword [r13 + 0x10]
mov rdx, r15
mov rcx, r13
call fcn.140066950
mov rcx, qword [rdi]
mov rbp, rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14005bcd0
cmp byte [rcx + 0x51], 0
jne 0x14005bcd0
movsxd rdx, dword [rdi + 0x3c]
lea r8, [rdx + rdx*2]
movsx edx, byte [rax + r8*8 - 0x17]
lea rdi, [rax + r8*8]
mov r8, qword [rax + r8*8 - 8]
call fcn.140041a40
xor eax, eax
test rbp, rbp
jne 0x14005bcc5
mov qword [rdi - 8], rax
mov byte [rdi - 0x17], al
jmp 0x14005bcdf
mov qword [rdi - 8], rbp
mov byte [rdi - 0x17], 0xfa
jmp 0x14005bcdf
mov r8, rbp
mov edx, 0xfffffffa
call fcn.140041a40
xor eax, eax
mov r9d, dword [rsp + 0x70]
mov r8d, esi
mov edx, 0x19
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.1400416c0
mov edi, dword [rsp + 0x100]
xor esi, esi
movzx r8d, word [r15 + 0x56]
mov rcx, rbx
mov dword [rsp + 0x20], esi
lea r9d, [rdi + 2]
lea edx, [rsi + 0x19]
call fcn.1400416c0
mov r9d, dword [rsp + 0x70]
lea edx, [rsi + 1]
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400416c0
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x14005bd70
cmp byte [rcx + 0x51], sil
jne 0x14005bd70
movsxd rax, dword [rbx + 0x3c]
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 - 0x17]
mov r8, qword [rdi - 8]
call fcn.140041a40
lea rax, [0x1401233d0]
mov byte [rdi - 0x17], 0xfb
mov qword [rdi - 8], rax
jmp 0x14005bd81
lea r8, [0x1401233d0]
mov edx, 0xfffffffb
call fcn.140041a40
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005bd97
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 2
mov ebp, dword [rsp + 0x108]
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], esi
mov rcx, rbx
lea edx, [r9 + 0x6c]
call fcn.1400416c0
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], eax
mov r13d, eax
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x19]
call fcn.1400416c0
mov esi, dword [rbx + 0x3c]
test r12d, r12d
jle 0x14005c10d
mov rdi, qword [rbx + 0x30]
mov edx, dword [rdi + 0x78]
mov dword [rsp + 0x4c], edx
lea eax, [rdx + 1]
mov dword [rdi + 0x78], eax
lea eax, [rdx - 1]
test edx, eax
jne 0x14005be1f
mov rcx, qword [rdi]
lea eax, [rdx*2 + 1]
mov rdx, qword [rdi + 0x80]
movsxd r8, eax
shl r8, 2
call fcn.1400223a0
mov edx, dword [rsp + 0x4c]
mov qword [rdi + 0x80], rax
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x14005be35
movsxd rax, edx
mov dword [rcx + rax*4], 0xffffffff
mov rcx, qword [rsp + 0x88]
mov edi, edx
mov edx, r14d
not edi
mov dword [rsp + 0x78], edi
lea rdx, [rdx*4 - 4]
call fcn.1400221f0
mov qword [rsp + 0x80], rax
mov r13, rax
test rax, rax
je 0x14005c2ee
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov rcx, rbx
lea edx, [rsi + 0x10]
call fcn.1400416c0
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x34], eax
cmp r12d, 1
jne 0x14005beb1
cmp word [r15 + 0x56], r12w
jne 0x14005beb1
cmp byte [r15 + 0x5a], sil
je 0x14005beb1
mov r8d, dword [rsp + 0x30]
lea edx, [rsi + 0x4d]
mov r9d, edi
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.1400416c0
mov r12, rsi
mov r14d, esi
nop word [rax + rax]
mov rax, qword [r15 + 0x40]
mov rbp, qword [r12 + rax]
mov rax, qword [rsp + 0xe0]
mov r8, rbp
mov rcx, qword [rax]
movzx r15d, byte [rcx + 0x4e]
movzx edi, byte [rcx + 0xa1]
movzx edx, r15b
mov r9d, edi
call fcn.140067140
mov rsi, rax
test dil, dil
jne 0x14005bf1c
test rax, rax
je 0x14005bf02
cmp qword [rax + 0x18], 0
jne 0x14005bf1c
mov rcx, qword [rsp + 0xe0]
mov r9, rbp
mov r8, rax
movzx edx, r15b
call fcn.140066e90
mov rsi, rax
mov r9d, dword [rsp + 0x3c]
xor eax, eax
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x19]
call fcn.1400416c0
mov r8d, dword [rsp + 0x108]
mov r9d, r14d
mov edi, dword [rsp + 0x44]
mov edx, 0x2f
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.1400416c0
mov eax, dword [rsp + 0x30]
xor r9d, r9d
add eax, r14d
mov r8d, edi
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [r9 + 0x4e]
call fcn.1400416c0
mov r9d, 0xfffffffc
mov r8, rsi
mov edx, eax
mov rcx, rbx
mov edi, eax
call fcn.140041d00
mov dword [r13], edi
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005bfa1
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x80
mov ebp, dword [rsp + 0x74]
inc r14d
mov r15, qword [rsp + 0x68]
add r12, 8
add r13, 4
cmp r14d, ebp
jl 0x14005bec0
mov r9d, dword [rsp + 0x3c]
xor edi, edi
mov r8d, ebp
mov dword [rsp + 0x20], edi
mov rcx, rbx
lea edx, [rdi + 0x19]
call fcn.1400416c0
mov r9d, dword [rsp + 0x78]
lea edx, [rdi + 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400416c0
mov eax, dword [rsp + 0x34]
mov edx, dword [rbx + 0x3c]
dec eax
cmp edx, eax
jbe 0x14005c00e
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rbx + 0x3c]
dec ecx
jmp 0x14005c011
lea ecx, [rdx - 1]
mov rax, qword [rbx + 0x30]
mov rsi, qword [rsp + 0x80]
mov r14d, dword [rsp + 0x30]
mov dword [rax + 0x64], ecx
mov eax, dword [rsi]
mov edx, dword [rbx + 0x3c]
cmp edx, eax
jbe 0x14005c03d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov r8d, dword [rsp + 0x108]
mov r9d, edi
mov edx, 0x2f
mov dword [rax + 0x64], ecx
lea eax, [rdi + r14]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400416c0
inc edi
add rsi, 4
cmp edi, ebp
jl 0x14005c025
movsxd rax, dword [rsp + 0x4c]
mov r8, qword [rbx + 0x30]
mov r14, qword [rsp + 0x80]
test eax, eax
js 0x14005c09b
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x14005c09b
mov rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov r12, qword [rsp + 0x88]
dec eax
mov dword [r8 + 0x64], eax
cmp qword [r12 + 0x320], 0
je 0x14005c0c4
mov rdx, r14
mov rcx, r12
call fcn.140021ee0
jmp 0x14005c0fd
cmp r14, qword [r12 + 0x168]
jb 0x14005c0f5
cmp r14, qword [r12 + 0x170]
jae 0x14005c0f5
mov rax, qword [r12 + 0x160]
mov qword [r14], rax
dec dword [r12 + 0x14c]
mov qword [r12 + 0x160], r14
jmp 0x14005c0fd
mov rcx, r14
call fcn.140021e30
mov esi, dword [rsp + 0x34]
mov ebp, dword [rsp + 0x108]
mov r13d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x100]
mov edx, 1
mov r14d, dword [rsp + 0x44]
mov r8d, edx
mov r9d, edi
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1400416c0
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x14005c180
cmp byte [rcx + 0x51], 0
jne 0x14005c180
movsxd rax, dword [rbx + 0x3c]
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 - 0x17]
mov r8, qword [rdi - 8]
call fcn.140041a40
lea rax, [0x140124e10]
mov byte [rdi - 0x17], 0xfb
mov qword [rdi - 8], rax
mov edi, dword [rsp + 0x100]
jmp 0x14005c191
lea r8, [0x140124e10]
mov edx, 0xfffffffb
call fcn.140041a40
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005c1a7
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 2
xor r12d, r12d
mov r9d, esi
mov r8d, ebp
mov dword [rsp + 0x20], r12d
mov rcx, rbx
lea edx, [r12 + 9]
call fcn.1400416c0
mov eax, dword [rsp + 0x50]
lea edx, [r12 + 1]
mov r9d, edi
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov rcx, rbx
call fcn.1400416c0
mov r8, qword [rbx + 8]
mov rcx, qword [rbx]
test r8, r8
je 0x14005c220
cmp byte [rcx + 0x51], r12b
jne 0x14005c220
movsxd rax, dword [rbx + 0x3c]
lea rdx, [rax + rax*2]
lea rdi, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 - 0x17]
mov r8, qword [rdi - 8]
call fcn.140041a40
lea rax, [0x140123270]
mov byte [rdi - 0x17], 0xfb
mov qword [rdi - 8], rax
jmp 0x14005c231
lea r8, [0x140123270]
mov edx, 0xfffffffb
call fcn.140041a40
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005c247
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 1
mov r8d, dword [rsp + 0x58]
mov r9d, 3
mov rcx, rbx
mov dword [rsp + 0x20], r14d
lea edx, [r9 + 0x2e]
call fcn.1400416c0
xor r9d, r9d
lea r8, [0x140147c6c]
mov edx, eax
mov rcx, rbx
call fcn.140041d00
mov esi, dword [rsp + 0x5c]
mov edx, 0x4a
mov r8d, dword [rsp + 0xf8]
mov r9d, esi
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.1400416c0
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov edx, 0x4b
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.1400416c0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005c2ca
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, dword [rbx + 0x3c]
cmp edx, r13d
jbe 0x14005c2e4
mov eax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov rax, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xe8]
mov ebp, dword [rsp + 0x30]
mov r15, qword [r15 + 0x28]
mov r13, qword [rsp + 0xe0]
mov qword [rsp + 0x68], r15
test r15, r15
jne 0x14005bbb4
mov esi, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x60]
cmp qword [rsp + 0xf0], 0
jne 0x14005c424
cmp byte [rsp + 0x48], 0
je 0x14005c424
mov r9d, dword [rsp + 0x50]
xor ebp, ebp
mov r8d, r12d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
lea edx, [rbp + 0x32]
call fcn.1400416c0
mov r8d, dword [rsp + 0x50]
lea edx, [rbp + 0x2e]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
call fcn.1400416c0
mov r9d, dword [rsp + 0x54]
lea edx, [rbp + 0x1c]
xor r8d, r8d
mov edi, eax
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.1400416c0
mov r8d, dword [rsp + 0x58]
lea r9d, [rbp + 3]
lea edx, [rbp + 0x31]
mov dword [rsp + 0x20], esi
mov rcx, rbx
call fcn.1400416c0
xor r9d, r9d
lea r8, [0x140147c34]
mov edx, eax
mov rcx, rbx
call fcn.140041d00
mov r14d, dword [rsp + 0x5c]
lea edx, [rbp + 0x4a]
mov r8d, dword [rsp + 0xf8]
mov r9d, r14d
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.1400416c0
mov r8d, dword [rsp + 0xf8]
lea edx, [rbp + 0x4b]
mov r9d, esi
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1400416c0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14005c404
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov edx, dword [rbx + 0x3c]
cmp edx, edi
jbe 0x14005c41a
mov rax, qword [rbx + 8]
lea rcx, [rdi + rdi*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret