Function at 0x47de70
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, 0x58
mov r15, rcx
mov rsi, rdx
test rdx, rdx
je 0x47e034
mov ecx, dword [0x0060de60]
mov ebx, dword [rdx + 0x18]
test ecx, ecx
jne 0x47e056
mov ecx, 0x200
call qword [0x0060de80]
mov r13, rax
mov r12d, 7
test r13, r13
je 0x47e020
lea rdi, [r13 + 8]
mov rcx, r13
xor eax, eax
mov qword [r13], 0
mov qword [r13 + 0x1f8], 0
and rdi, 0xfffffffffffffff8
sub rcx, rdi
add ecx, 0x200
shr ecx, 3
rep stosq qword [rdi], rax
mov dword [r13], ebx
mov eax, dword [rsi + 0x18]
cmp qword [r15 + 0x128], 0
mov rbx, qword [r15 + 0x60]
mov dword [r15 + 0x20], eax
movzx eax, byte [r15 + 0x10]
mov byte [r15 + 0x17], al
je 0x47e3bc
mov qword [r15 + 0x60], 0
xor eax, eax
lea r14, [rsp + 0x44]
lea rbp, [r15 + 0x60]
cmp rax, rbx
jge 0x47e161
lea rax, [rsp + 0x48]
xor edx, edx
mov r9, r14
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rcx, r15
mov dword [rsp + 0x44], 0
call fcn.00420510
mov edx, dword [rsp + 0x44]
mov r12d, eax
test edx, edx
jne 0x47e11c
mov rax, qword [r15 + 0x60]
mov edx, dword [r15 + 0xb8]
add rdx, qword [r15 + 0x68]
cmp rdx, rax
je 0x47e100
test r12d, r12d
je 0x47df25
nop dword [rax]
test rsi, rsi
je 0x47e16d
mov rax, qword [r15 + 0xc8]
mov ebp, dword [rsi + 0x1c]
mov rcx, qword [r15 + 0x128]
lea rdi, [rax + 4]
mov eax, ebp
imul rdi, rax
test rcx, rcx
jne 0x47e41e
test r12d, r12d
jne 0x47dfff
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
cmp ebp, dword [r15 + 0x3c]
jae 0x47e34b
nop word cs:[rax + rax]
mov rcx, qword [r15 + 0x58]
mov r14, qword [r15 + 0x118]
mov r9, rdi
mov r8d, 4
mov rdx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov qword [rsp + 0x30], rcx
call qword [rax + 0x10]
mov r12d, eax
test eax, eax
je 0x47e180
test r13, r13
je 0x47e020
cmp dword [r13 + 8], 0
jne 0x47e472
mov rcx, r13
call fcn.0040c4a0
test r12d, r12d
je 0x47e364
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rcx + 0x24]
mov r13, qword [rcx + 0x128]
mov dword [rcx + 0x20], eax
movzx eax, byte [rcx + 0x10]
mov byte [rcx + 0x17], al
test r13, r13
jne 0x47e07a
mov rbx, qword [r15 + 0x60]
jmp 0x47df12
mov rcx, qword [0x0066ea40]
test rcx, rcx
je 0x47e068
call qword [0x0060dee0]
mov ecx, 0x200
call fcn.00410e20
mov r13, rax
jmp 0x47deae
xor r12d, r12d
cmp byte [r13 + 0x40], 0
mov edi, 1
jne 0x47e5e0
mov rax, qword [r15 + 0x120]
mov rcx, qword [rax]
mov rax, rcx
test rcx, rcx
je 0x47e0b0
nop
mov rdx, rax
mov rax, qword [rax + 0x38]
mov qword [rdx + 0x20], rax
test rax, rax
jne 0x47e0a0
call fcn.0040b100
mov rbx, rax
test rax, rax
je 0x47e020
test dil, dil
jne 0x47e0d8
jmp 0x47e020
test eax, eax
jne 0x47e020
mov rax, rbx
mov rcx, r15
mov rbx, qword [rbx + 0x20]
mov edx, dword [rax + 0x30]
call fcn.00430550
mov r12d, eax
test rbx, rbx
jne 0x47e0d0
jmp 0x47e020
mov rcx, qword [r15 + 0xc8]
mov rax, rbx
sub rax, rdx
add rcx, 8
cqo
idiv rcx
mov dword [rsp + 0x44], eax
mov edx, eax
test r12d, r12d
jne 0x47df80
xor edi, edi
jmp 0x47e150
mov r8, r13
mov rdx, rbp
mov rcx, r15
add edi, 1
call fcn.0047db80
mov r12d, eax
test eax, eax
jne 0x47df80
mov edx, dword [rsp + 0x44]
mov rax, qword [r15 + 0x60]
cmp edx, edi
jbe 0x47df25
cmp rax, rbx
jl 0x47e130
xor r12d, r12d
test rsi, rsi
jne 0x47df89
test r13, r13
jne 0x47e004
jmp 0x47e017
mov rcx, qword [rsp + 0x30]
mov esi, dword [rsp + 0x48]
lea r9, [rdi + 4]
mov rdx, r14
mov r8d, dword [r15 + 0xc8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r12d, eax
test eax, eax
jne 0x47dfff
bswap esi
test esi, esi
je 0x47e398
cmp esi, dword [r15 + 0xc0]
je 0x47e398
mov rax, qword [r15 + 0xc8]
lea rdi, [rdi + rax + 4]
cmp esi, dword [r15 + 0x20]
ja 0x47e386
test r13, r13
je 0x47e25d
lea edx, [rsi - 1]
cmp edx, dword [r13]
jae 0x47e24b
mov rcx, r13
jmp 0x47e203
mov eax, edx
xor edx, edx
div r8d
mov eax, eax
mov rcx, qword [rcx + rax*8 + 0x10]
test rcx, rcx
je 0x47e24b
mov r8d, dword [rcx + 8]
test r8d, r8d
jne 0x47e1f0
cmp dword [rcx], 0xf80
lea r8d, [rdx + 1]
ja 0x47e22c
jmp 0x47e370
cmp edx, r8d
je 0x47e386
lea edx, [rax + 1]
mov eax, edx
shr eax, 2
imul rax, rax, 0x21084211
shr rax, 0x22
imul eax, eax, 0x7c
sub edx, eax
mov eax, edx
mov edx, dword [rcx + rdx*4 + 0x10]
test edx, edx
jne 0x47e220
mov edx, esi
mov rcx, r13
call fcn.00416840
test eax, eax
jne 0x47e464
cmp esi, 1
je 0x47e496
cmp qword [r15 + 0x128], 0
je 0x47e4c1
mov qword [rsp + 0x48], 0
mov rdx, qword [r15 + 0x48]
mov rax, qword [rdx]
mov r11, rdx
test rax, rax
je 0x47e29d
movzx ecx, byte [r15 + 0x15]
lea edx, [rcx - 1]
cmp dl, 2
ja 0x47e560
or byte [r15 + 0x19], 2
mov r8, qword [rsp + 0x38]
mov edx, esi
mov rcx, r15
mov r9d, 1
call qword [r15 + 0x110]
and byte [r15 + 0x19], 0xfd
test eax, eax
jne 0x47e464
mov rcx, qword [rsp + 0x48]
add ebp, 1
movzx eax, word [rcx + 0x34]
test al, 0x11
je 0x47e2e7
mov edx, eax
and edx, 0xffffffef
test al, 1
jne 0x47e5b8
mov word [rcx + 0x34], dx
mov r9, qword [rcx + 8]
mov r8, qword [r15 + 0xc8]
mov rdx, r14
mov rcx, r9
mov qword [rsp + 0x30], r9
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x48]
call qword [r15 + 0x108]
cmp esi, 1
mov r9, qword [rsp + 0x30]
jne 0x47e32e
mov rax, qword [r9 + 0x18]
mov rdx, qword [r9 + 0x20]
mov qword [r15 + 0x88], rax
mov qword [r15 + 0x90], rdx
mov rcx, qword [rsp + 0x48]
call fcn.00418c80
test r12d, r12d
jne 0x47dfff
cmp ebp, dword [r15 + 0x3c]
jb 0x47dfd0
test r13, r13
je 0x47e364
mov eax, dword [r13 + 8]
test eax, eax
jne 0x47e52a
mov rcx, r13
call fcn.0040c4a0
mov qword [r15 + 0x60], rbx
xor r12d, r12d
jmp 0x47e020
mov eax, edx
and edx, 7
shr eax, 3
movzx eax, byte [rcx + rax + 0x10]
bt eax, edx
jae 0x47e24b
add ebp, 1
cmp dword [r15 + 0x3c], ebp
ja 0x47dfd0
jmp 0x47e34b
test r13, r13
je 0x47e3b1
mov edx, dword [r13 + 8]
test edx, edx
jne 0x47e46c
mov rcx, r13
call fcn.0040c4a0
mov r12d, 0x65
jmp 0x47e020
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
lea rbp, [r15 + 0x60]
test rdi, rdi
mov qword [r15 + 0x60], rax
cmove rdi, rbx
jmp 0x47e3dc
mov rax, qword [r15 + 0x60]
cmp rdi, rax
jle 0x47df1c
mov r8, r13
mov rdx, rbp
mov rcx, r15
call fcn.0047db80
mov r12d, eax
test eax, eax
je 0x47e3d8
mov rax, qword [r15 + 0xc8]
mov ebp, dword [rsi + 0x1c]
mov rcx, qword [r15 + 0x128]
lea rdi, [rax + 4]
mov eax, ebp
imul rdi, rax
test rcx, rcx
je 0x47e004
mov eax, dword [rcx + 0x88]
cmp dword [rsi + 0x30], eax
je 0x47e5b0
mov dword [rsi + 0x24], 0
mov eax, dword [rcx + 0x88]
mov dword [rsi + 0x30], eax
xor eax, eax
cmp dword [rcx + 0x58], eax
jbe 0x47dfb2
mov dword [rcx + 0x58], eax
mov eax, dword [rsi + 0x28]
mov dword [rcx + 0x60], eax
mov eax, dword [rsi + 0x2c]
mov dword [rcx + 0x64], eax
call fcn.00420a80
mov ebp, dword [rsi + 0x1c]
jmp 0x47dfb2
mov r12d, eax
jmp 0x47dfff
mov r12d, 0x65
lea rsi, [r13 + 0x10]
lea rdi, [r13 + 0x200]
nop dword [rax]
mov rcx, qword [rsi]
add rsi, 8
call fcn.0040c760
cmp rdi, rsi
jne 0x47e480
jmp 0x47e00f
movzx edx, byte [r14 + 0x14]
movsx ecx, word [r15 + 0xb2]
cmp ecx, edx
je 0x47e266
cmp qword [r15 + 0x128], 0
mov word [r15 + 0xb2], dx
jne 0x47e274
mov rax, qword [r15 + 0x120]
xor r8d, r8d
mov edx, esi
mov rcx, qword [rax + 0x40]
call qword [0x0060df40]
mov r8, rax
test rax, rax
je 0x47e274
mov rcx, qword [rax + 8]
mov r9, qword [r15 + 0x120]
cmp qword [rcx], 0
je 0x47e532
mov r11, qword [r15 + 0x48]
add dword [r9 + 0x18], 1
add word [rcx + 0x36], 1
mov qword [rsp + 0x48], rcx
mov rax, qword [r11]
test rax, rax
je 0x47e522
movzx edx, byte [r15 + 0x15]
sub edx, 1
cmp dl, 2
jbe 0x47e522
test byte [rcx + 0x34], 8
je 0x47e560
add ebp, 1
jmp 0x47e2e7
xor r12d, r12d
jmp 0x47e472
mov edx, esi
mov rcx, r9
call fcn.004108e0
mov rdx, qword [r15 + 0x48]
mov rcx, rax
mov qword [rsp + 0x48], rax
mov r11, rdx
mov rax, qword [rdx]
test rcx, rcx
jne 0x47e50a
jmp 0x47e281
mov r8, qword [r15 + 0xc8]
lea r9d, [rsi - 1]
mov rdx, r14
mov rcx, r11
imul r9, r8
call qword [rax + 0x18]
mov r12d, eax
cmp esi, dword [r15 + 0x28]
jbe 0x47e585
mov dword [r15 + 0x28], esi
mov rcx, qword [r15 + 0x70]
test rcx, rcx
je 0x47e598
mov r8, r14
mov edx, esi
call fcn.0047b4c0
mov rcx, qword [rsp + 0x48]
add ebp, 1
test rcx, rcx
je 0x47e338
jmp 0x47e2e7
mov eax, dword [rsi + 0x24]
jmp 0x47e43f
xor edx, 3
mov word [rcx + 0x34], dx
mov edx, 2
call fcn.00407d60
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x47dfbc
xor r12d, r12d
jmp 0x47e2e7
mov rcx, qword [r13 + 0x30]
mov ebx, dword [r13 + 0x58]
mov rax, qword [rcx]
movdqu xmm0, xmmword [rax]
movups xmmword [r13 + 0x48], xmm0
movdqu xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x58], xmm1
movdqu xmm2, xmmword [rax + 0x20]
mov eax, dword [r13 + 0x58]
lea esi, [rax + 1]
movups xmmword [r13 + 0x68], xmm2
cmp ebx, esi
jae 0x47e652
jmp 0x47e679
cdqe
lea rdx, [rsi*4 + 0x84]
and edx, 0x3ffc
add rdx, qword [rcx + rax*8]
mov rax, rdx
mov edx, dword [rax]
mov rcx, r15
add esi, 1
call fcn.00430550
test eax, eax
mov r12d, eax
sete dil
cmp ebx, esi
jb 0x47e675
test dil, dil
je 0x47e675
mov rcx, qword [r13 + 0x30]
lea eax, [rsi + 0x1000]
sub rax, 0xfdf
shr rax, 0xc
test eax, eax
jne 0x47e618
mov rax, qword [rcx]
mov edx, esi
lea rax, [rax + rdx*4 + 0x84]
jmp 0x47e62f
mov eax, dword [r13 + 0x58]
cmp ebx, eax
je 0x47e08d
mov rcx, r13
call fcn.00420a80
jmp 0x47e08d