Function at 0x4c2940
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x48]
cmp r12, qword [r14 + 0x10]
jbe 0x4c2e75
sub rsp, 0xc8
mov qword [rsp + 0xc0], rbp
lea rbp, [rsp + 0xc0]
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xd0], rax
mov ecx, 0x107
lea rax, [0x004d8040]
mov rbx, rcx
call fcn.004480c0
mov qword [rsp + 0xa8], rax
mov rbx, qword [rsp + 0xd8]
mov rcx, rax
mov edi, 0x107
mov rsi, rdi
mov r8d, 5
mov rax, qword [rsp + 0xd0]
call fcn.004c25c0
nop dword [rax + rax]
test rbx, rbx
jne 0x4c2e1c
mov r10, qword [rsp + 0xa8]
cmp byte [r10], 5
jne 0x4c2dfa
movzx r11d, byte [r10 + 1]
cmp r11b, 3
ja 0x4c29ef
test r11b, r11b
jne 0x4c2aaf
movups xmmword [rsp + 0xb0], xmm15
lea r12, [0x004d8040]
mov qword [rsp + 0xb0], r12
lea r12, [0x005b60e0]
lea r11, [r12 + r11*8]
mov qword [rsp + 0xb8], r11
cmp byte [0x00618aa2], 0
je 0x4c2aaf
mov qword [rsp + 0x58], rax
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x70]
lea rbx, [0x004f4cde]
mov ecx, 4
lea rdi, [0x004f7dc9]
mov esi, 0x13
lea r8, [0x004ff8a0]
mov r9d, 1
call fcn.0044bbc0
mov rdx, qword [0x005c39b8]
mov rcx, rax
mov rdi, rbx
lea rsi, [rsp + 0xb0]
mov r8d, 1
mov r9, r8
lea rax, [0x0051dee0]
mov rbx, rdx
call fcn.004a0d20
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x68]
mov r10, qword [rsp + 0xa8]
cmp byte [r10 + 1], 1
jne 0x4c2dd8
movzx r9d, byte [r10 + 3]
nop
cmp r9b, 1
jne 0x4c2ace
mov r9d, 0xa
jmp 0x4c2af0
cmp r9b, 3
jne 0x4c2ae0
movzx r9d, byte [r10 + 4]
add r9, 7
jmp 0x4c2af0
cmp r9b, 4
jne 0x4c2db6
mov r9d, 0x16
mov qword [rsp + 0x50], r9
cmp rax, r9
je 0x4c2b6b
nop word [rax + rax]
jge 0x4c2d94
cmp r9, 0x107
ja 0x4c2e67
cmp rax, r9
ja 0x4c2e5f
mov r8, r9
sub r8, rax
lea rsi, [rax - 0x107]
mov rdx, rsi
sar rsi, 0x3f
and rsi, rax
lea rcx, [r10 + rsi]
neg rdx
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov rdi, r8
mov rsi, rdx
call fcn.004c25c0
test rbx, rbx
jne 0x4c2d7a
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x68], rbx
movzx esi, byte [r10 + 3]
nop dword [rax]
cmp sil, 1
je 0x4c2c22
cmp sil, 3
jne 0x4c2be0
movzx edx, byte [r10 + 4]
add edx, 5
movzx edx, dl
nop dword [rax + rax]
cmp rdx, 5
jb 0x4c2e52
lea rcx, [rdx - 5]
lea rbx, [r10 + 5]
xor eax, eax
call fcn.0044bee0
mov rcx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0xa8]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x68]
jmp 0x4c2c60
cmp sil, 4
je 0x4c2bec
xor eax, eax
xor edx, edx
jmp 0x4c2c60
lea rax, [r10 + 4]
mov ebx, 0x10
mov ecx, 0x103
call fcn.004b33e0
mov rcx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0xa8]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x68]
nop
jmp 0x4c2c60
lea rax, [r10 + 4]
mov ebx, 4
mov ecx, 0x103
call fcn.004b33e0
mov rcx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0xa8]
mov rdx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x68]
nop word [rax + rax]
nop
cmp r9, 0x107
ja 0x4c2e45
lea rsi, [r9 - 2]
cmp r9, rsi
jb 0x4c2e36
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x98], rdx
lea rcx, [r9 - 0x109]
sar rcx, 0x3f
and rsi, rcx
movzx ecx, word [r10 + rsi]
rol cx, 8
movzx eax, cx
mov ebx, 0xa
call fcn.00493020
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x48], rbx
mov rcx, qword [rsp + 0x98]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.004022e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4c2d30
xor eax, eax
lea rbx, [0x004f4a75]
mov ecx, 1
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x60]
lea r8, [0x004f4ae2]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x48]
call fcn.0044bca0
jmp 0x4c2d5d
xor eax, eax
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x0051c5d8]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x48]
call fcn.0044bbc0
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
xor eax, eax
mov rdi, rcx
mov rcx, rbx
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rcx, qword [0x005c4190]
mov rdi, qword [0x005c4198]
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rcx, qword [0x005c4150]
mov rdi, qword [0x005c4158]
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rcx, qword [0x005c4170]
mov rdi, qword [0x005c4178]
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rcx, qword [0x005c41a0]
mov rdi, qword [0x005c41a8]
xor eax, eax
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
xor eax, eax
mov rdi, rcx
mov rcx, rbx
xor ebx, ebx
mov rbp, qword [rsp + 0xc0]
add rsp, 0xc8
ret
mov rax, rsi
mov rcx, r9
nop dword [rax]
call fcn.004614e0
mov rcx, r9
mov edx, 0x107
call fcn.004614a0
mov eax, 5
mov rcx, rdx
call fcn.004614e0
mov rcx, r9
call fcn.004614e0
mov rcx, r9
mov edx, 0x107
call fcn.004614a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.0045ed20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004c2940