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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [0x140c3a780]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x120]
test eax, eax
je 0x140047cae
mov rax, qword [rsp + 0x118]
add rax, 0x330
mov rcx, rax
call fcn.140032800
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x118]
add rax, 0x328
mov rcx, rax
call fcn.14002eab0
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov eax, 2
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.1402a5b8c
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x20]
shl rax, 1
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.140103d50
nop
jmp 0x140047d87
mov rax, qword [rsp + 0x118]
add rax, 0xa68
mov rcx, rax
call fcn.14002eab0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov rcx, rax
call fcn.140032800
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jg 0x140047d11
lea rdx, [0x1402af650]
mov rcx, qword [rsp + 0x110]
call fcn.140032d00
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x110]
jmp 0x140047f21
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov eax, 2
mov rcx, qword [rsp + 0x78]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.1402a5b8c
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
add rax, 8
mov rcx, rax
call fcn.14002eab0
mov qword [rsp + 0x88], rax
movsxd rax, dword [rsp + 0x20]
shl rax, 1
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
call fcn.140103d50
nop
mov eax, dword [rsp + 0x20]
dec eax
mov byte [rsp + 0x24], al
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movsx eax, byte [rsp + 0x24]
and eax, 3
mov dword [rsp + 0x3c], eax
jmp 0x140047dda
mov eax, dword [rsp + 0x3c]
and eax, 7
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov word [rcx], ax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x20], 0
jne 0x140047df3
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jl 0x140047dff
jmp 0x140047e16
mov eax, dword [rsp + 0x3c]
add eax, 3
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x140047db1
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xd0]
call fcn.140045df0
nop
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1402a5854
cmp qword [rsp + 0x58], 0
jne 0x140047e53
mov qword [rsp + 0x90], 0
jmp 0x140047e69
mov qword [rsp + 0x30], 0x8123
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x38]
call fcn.14002e970
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xd0]
call fcn.140035850
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xd0]
call fcn.1400354f0
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb8], rax
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x110]
call fcn.14002fd90
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0xd0]
call fcn.140034030
nop
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1402a5b30
add rsp, 0x108
ret