Function at 0x49fd60
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, 0x48
mov r13, qword [rcx]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov ebp, dword [r13 + 0x44]
movzx eax, byte [rdi + 0x20]
lea r14d, [rbp - 1]
mov byte [rsp + 0x30], al
mov rbx, rcx
mov r12d, edx
mov dword [rsp + 0xa8], r9d
mov r15d, r8d
mov dword [r13 + 0x44], r14d
cmp edx, 2
je 0x4a00a8
test r8d, r8d
jle 0x49fdd3
cmp byte [rdi + 0x20], 0x59
je 0x4a0370
mov r9d, r14d
mov r8d, r15d
mov edx, 0x3b
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.0043e0f0
mov dword [rsp + 0x34], 0
cmp r12d, 1
je 0x49fe90
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rdi + 0x21]
cmp byte [rdi + 0x22], al
jne 0x49fe01
test r15d, r15d
jne 0x4a02e0
cmp r12d, 2
je 0x4a0115
mov eax, dword [rbx + 0x40]
mov r10d, dword [rdi + 0x84]
mov r15d, dword [rbx + 0x3c]
mov dword [rsp + 0x38], eax
test r10d, r10d
je 0x4a01f0
mov r8d, dword [rdi + 0x88]
mov r9d, 1
mov edx, 0x56
mov rcx, rsi
call fcn.0043e160
cmp dword [rbx + 0x24], r12d
jne 0x49fedd
nop word [rax + rax]
xor r9d, r9d
mov r8d, r15d
mov edx, 0x82
mov rcx, rsi
call fcn.0043e160
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x49fee4
mov r8, qword [rsi + 0x88]
movsxd rdx, eax
mov r9d, 2
lea rdx, [rdx + rdx*2]
lea rdx, [r8 + rdx*8]
mov word [rdx - 0x16], r9w
jmp 0x49fee4
mov eax, dword [rdi + 0x84]
test eax, eax
je 0x4a03a0
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rdi + 0x22]
cmp byte [rdi + 0x21], al
jne 0x49fec0
test r15d, r15d
je 0x49fec0
cmp byte [rdi + 0x20], 0x59
je 0x4a023e
mov eax, dword [rbx + 0x38]
mov rcx, rbx
mov r15d, dword [rbx + 0x34]
mov dword [rsp + 0x38], eax
call fcn.0049eb30
cmp dword [rbx + 0x24], r12d
je 0x49fe50
movsxd rax, dword [rsi + 0x90]
mov ecx, dword [rsp + 0xa8]
mov edx, dword [rsi + 0x94]
test ecx, ecx
je 0x4a0028
lea r9d, [rax + 2]
cmp eax, edx
jge 0x4a03d8
lea r10d, [rax + 1]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov dword [rsi + 0x90], r10d
lea rax, [rax + rcx*8]
mov dword [rax + 4], r15d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x27
cmp r10d, edx
jge 0x4a0408
lea eax, [r10 + 1]
mov dword [rsi + 0x90], eax
movsxd rax, r10d
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
cmp byte [rsp + 0x30], 0x4c
je 0x49ffe0
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x49ff94
mov r12d, dword [rax]
test r12d, r12d
jne 0x4a02f0
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov dword [rsp + 0x30], r10d
xor r12d, r12d
xor r14d, r14d
call fcn.0043e510
mov eax, dword [rsp + 0x3c]
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov r9d, dword [rsp + 0x38]
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.00456430
mov r10d, dword [rsp + 0x30]
cmp dword [r13 + 0x28], r12d
jge 0x49ffe0
mov dword [r13 + 0x28], r12d
mov dword [r13 + 0x2c], r14d
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x4a0150
mov rcx, qword [rsi + 0x18]
neg ebp
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x4a01aa
mov edx, dword [rsi + 0x90]
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
mov eax, r10d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
cmp byte [rsp + 0x30], 0x4c
lea ecx, [rax + 1]
setne r9b
add r9d, ecx
cmp eax, edx
jge 0x4a03b8
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov dword [rsi + 0x90], ecx
lea rax, [rax + rdx*8]
mov dword [rax + 4], r15d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x27
xor r10d, r10d
cmp byte [rsp + 0x30], 0x4c
je 0x49ffe0
mov r9d, r14d
xor r8d, r8d
mov edx, 9
mov rcx, rsi
mov dword [rsp + 0x30], r10d
call fcn.0043e160
mov r10d, dword [rsp + 0x30]
jmp 0x49ff7f
movzx eax, byte [rdi + 0x21]
xor r10d, r10d
cmp al, 0x5a
je 0x4a000e
test r8d, r8d
jle 0x4a0210
cmp byte [rdi + 0x20], 0x59
jne 0x49fdb8
mov eax, dword [rsi + 0x90]
cmp byte [rdi + 0x21], 0x56
mov r8d, dword [rbx + 0x2c]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x34]
je 0x4a0480
mov dword [rsp + 0x28], r14d
mov r9d, r15d
mov edx, 0x39
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.00460020
mov eax, dword [rsi + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rdi + 0x21]
cmp byte [rdi + 0x22], al
je 0x4a0234
mov eax, dword [rbx + 0x30]
mov r8d, dword [rdi + 0x84]
mov r15d, dword [rbx + 0x2c]
mov dword [rsp + 0x38], eax
test r8d, r8d
je 0x4a01d0
mov r9d, 1
mov edx, 0x56
mov rcx, rsi
call fcn.0043e160
jmp 0x49fed3
movsxd rax, dword [rsi + 0x90]
cmp eax, dword [rsi + 0x94]
jge 0x4a0430
lea edx, [rax + 1]
mov edi, dword [rsp + 0x34]
neg ebp
mov dword [rsi + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rdx*8]
mov qword [rax], 9
mov rcx, qword [rsi + 0x18]
mov dword [rax + 8], edi
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
jns 0x49fffe
lea rdx, [rsi + 0x90]
mov r8d, ebp
mov dword [rsp + 0x30], r10d
call fcn.0043b1c0
mov r10d, dword [rsp + 0x30]
jmp 0x4a000e
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
mov r9d, 1
mov r8d, r15d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call fcn.0049dff0
jmp 0x49fed3
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, r15d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call fcn.0049dff0
jmp 0x49fed3
mov ecx, dword [rsi + 0x90]
cmp byte [rdi + 0x22], al
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x3c], ecx
jne 0x4a0115
test r8d, r8d
je 0x4a0115
cmp byte [rdi + 0x20], 0x59
jne 0x4a0115
movzx eax, byte [r13 + 0x1f]
test al, al
je 0x4a0460
lea edx, [rax - 1]
movzx ecx, dl
mov byte [r13 + 0x1f], dl
mov r15d, dword [r13 + rcx*4 + 0xe4]
test dl, dl
je 0x4a0541
sub eax, 2
mov byte [r13 + 0x1f], al
movzx eax, al
mov r10d, dword [r13 + rax*4 + 0xe4]
cmp r12d, 2
je 0x4a04e8
mov r11d, dword [rbx + 0x28]
test r11d, r11d
jne 0x4a04a8
test r15d, r15d
je 0x4a02ab
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x4a02c8
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe4], r15d
test r10d, r10d
je 0x4a02c8
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x4a02c8
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe4], r10d
cmp r12d, 1
jne 0x49fe01
jmp 0x49fec0
cmp byte [rdi + 0x20], 0x59
jne 0x49fe01
jmp 0x4a023e
mov edx, r12d
mov rcx, r13
mov dword [rsp + 0x30], r10d
call fcn.0040da90
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov r8d, r15d
mov r9d, eax
mov r14d, eax
call fcn.0043e510
mov eax, dword [rsp + 0x3c]
mov rdx, qword [rdi + 0x18]
mov r8d, r14d
mov r9d, dword [rsp + 0x38]
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.00456430
cmp r12d, 1
mov r10d, dword [rsp + 0x30]
jne 0x49ffd2
test r14d, r14d
je 0x49ffe0
movzx eax, byte [r13 + 0x1f]
cmp al, 7
ja 0x49ffe0
lea edx, [rax + 1]
mov byte [r13 + 0x1f], dl
mov dword [r13 + rax*4 + 0xe4], r14d
jmp 0x49ffe0
mov eax, dword [rsi + 0x90]
mov r8d, dword [rbx + 0x3c]
mov r9d, r15d
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov edx, 0x36
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x20], eax
call fcn.00460020
jmp 0x49fddb
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
xor r8d, r8d
call fcn.0043e980
jmp 0x49fe9e
mov dword [rsp + 0x20], 0
mov r8d, r15d
mov edx, 0x27
mov rcx, rsi
call fcn.0043df10
jmp 0x4a0074
mov dword [rsp + 0x20], 0
mov edx, 0x27
mov r8d, r15d
mov rcx, rsi
call fcn.0043df10
mov r10d, dword [rsi + 0x90]
mov edx, dword [rsi + 0x94]
jmp 0x49ff3c
xor r9d, r9d
xor r8d, r8d
mov edx, 9
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.0043df10
mov r10d, eax
jmp 0x49ff78
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov edx, 9
mov rcx, rsi
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], r10d
call fcn.0043df10
mov r10d, dword [rsp + 0x30]
jmp 0x49ffec
mov eax, dword [r13 + 0x38]
lea r15d, [rax + 1]
mov r10d, r15d
add r10d, 1
mov dword [r13 + 0x38], r10d
jmp 0x4a0277
mov dword [rsp + 0x20], r8d
mov r9d, r15d
mov r8d, eax
mov edx, 0x37
mov dword [rsp + 0x28], r14d
mov rcx, rbx
call fcn.00460020
jmp 0x4a00fe
mov r8d, dword [rbx + 0x3c]
mov r9d, r15d
mov edx, 0x87
mov rcx, rsi
mov dword [rsp + 0x38], r10d
call fcn.0043e160
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov rcx, rsi
mov r8d, dword [rbx + 0x28]
mov edx, 0x39
call fcn.0043e0f0
mov r10d, dword [rsp + 0x38]
jmp 0x4a028e
mov r8d, dword [rbx + 0x2c]
mov r9d, r15d
mov edx, 0x87
mov rcx, rsi
mov dword [rsp + 0x38], r10d
call fcn.0043e160
mov r10d, dword [rsp + 0x38]
mov r8d, dword [rbx + 0x3c]
mov rcx, rsi
mov edx, 0x87
mov r9d, r10d
call fcn.0043e160
mov r10d, dword [rsp + 0x38]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], r15d
mov edx, 0x39
mov r8d, r10d
call fcn.0043e0f0
mov r10d, dword [rsp + 0x38]
jmp 0x4a028e
mov r10d, dword [r13 + 0x38]
jmp 0x4a046b