Function at 0x504160
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x38]
cmp r12, qword [r14 + 0x10]
jbe 0x50478b
push rbp
mov rbp, rsp
sub rsp, 0xb0
lea rax, [0x0056ae52]
mov ebx, 7
call fcn.004a16c0
jmp 0x504190
mov rbx, rsi
test rbx, rbx
je 0x504445
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x98], rax
nop
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2c
call fcn.00403840
xorps xmm15, xmm15
mov r14, qword [0x007b3c90]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
test rcx, rcx
jge 0x5041e9
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
xor esi, esi
xor eax, eax
jmp 0x504227
mov rdx, qword [rsp + 0x30]
cmp rdx, rcx
jb 0x504785
lea rax, [rcx + 1]
nop dword [rax + rax]
cmp rdx, rax
jb 0x50477c
sub rdx, rcx
dec rdx
mov rsi, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
mov rdx, qword [rsp + 0x98]
add rax, rdx
cmp rcx, 4
jl 0x50418d
cmp dword [rdx], 0x2e757063
jne 0x50418d
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rcx
nop
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov byte [rsp + 0x10], 0x3d
nop
call fcn.00403840
xorps xmm15, xmm15
mov r14, qword [0x007b3c90]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
test rcx, rcx
jl 0x5043f0
mov rdx, qword [rsp + 0x28]
cmp rdx, rcx
jb 0x504777
nop word [rax + rax]
cmp rcx, 4
jb 0x50476d
lea rsi, [rcx - 4]
mov rdi, rsi
neg rsi
sar rsi, 0x3f
and esi, 4
lea rax, [rcx + 1]
mov r8, qword [rsp + 0x98]
lea rbx, [r8 + rsi]
cmp rdx, rax
jb 0x504765
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x90], rbx
sub rdx, rcx
lea r9, [rdx - 1]
mov qword [rsp + 0x20], r9
mov r10, r9
neg r9
sar r9, 0x3f
and rax, r9
lea r9, [r8 + rax]
mov qword [rsp + 0x68], r9
cmp rdx, 3
jne 0x504318
movzx r11d, word [r8 + rax]
cmp r11w, 0x6e6f
je 0x504337
jmp 0x50437d
cmp rdx, 4
jne 0x50437d
movzx r11d, word [r8 + rax]
cmp r11w, 0x666f
jne 0x50437d
movzx r11d, byte [r8 + rax + 2]
cmp r11b, 0x66
jne 0x50437d
cmp rcx, 7
jne 0x504365
movzx r9d, word [r8 + rsi]
cmp r9w, 0x6c61
jne 0x504365
movzx esi, byte [r8 + rsi + 2]
cmp sil, 0x6c
jne 0x504365
mov rbx, qword [0x0072e0e8]
xor eax, eax
nop
jmp 0x5046e3
mov qword [rsp + 0x50], rdx
mov rsi, qword [0x0072e0e8]
mov qword [rsp + 0x48], rsi
xor eax, eax
jmp 0x5045ac
nop dword [rax]
call fcn.0043a3e0
lea rax, [0x005711d7]
mov ebx, 0x18
call fcn.0043ac60
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x20]
call fcn.0043ac60
lea rax, [0x00574001]
mov ebx, 0x20
call fcn.0043ac60
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x58]
call fcn.0043ac60
lea rax, [0x0056a6fe]
mov ebx, 2
call fcn.0043ac60
call fcn.0043a440
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
jmp 0x50418d
call fcn.0043a3e0
lea rax, [0x00576362]
mov ebx, 0x29
call fcn.0043ac60
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x28]
call fcn.0043ac60
lea rax, [0x0056a6fe]
mov ebx, 2
call fcn.0043ac60
call fcn.0043a440
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
nop dword [rax + rax]
jmp 0x50418d
mov rax, qword [0x0072e0e0]
mov rcx, qword [0x0072e0e8]
jmp 0x504460
add rax, 0x20
dec rcx
nop dword [rax]
test rcx, rcx
jle 0x50459f
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x80], xmm0
cmp byte [rsp + 0x88], 0
je 0x504455
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0xa0], rax
movzx edx, byte [rsp + 0x89]
nop dword [rax]
test dl, dl
je 0x50451f
mov rbx, qword [rsp + 0x80]
cmp byte [rbx], 0
je 0x5044b7
test dl, dl
jne 0x504529
jmp 0x50451f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rcx
call fcn.0043a3e0
lea rax, [0x0057462d]
mov ebx, 0x21
nop
call fcn.0043ac60
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
call fcn.0043ac60
lea rax, [0x00570ac1]
mov ebx, 0x17
call fcn.0043ac60
call fcn.0043a440
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
jmp 0x504455
cmp byte [rsp + 0x8a], 0
jne 0x504538
mov rbx, qword [rsp + 0x80]
mov byte [rbx], dl
jmp 0x504455
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rcx
call fcn.0043a3e0
lea rax, [0x005748f6]
mov ebx, 0x22
call fcn.0043ac60
mov rax, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x58]
call fcn.0043ac60
lea rax, [0x005711ef]
mov ebx, 0x18
call fcn.0043ac60
call fcn.0043a440
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
jmp 0x504455
add rsp, 0xb0
pop rbp
ret
lea rax, [r8 + 1]
cmp rax, rsi
jge 0x504672
mov rcx, qword [0x0072e0e8]
nop dword [rax]
cmp rax, rcx
jae 0x5046cf
mov r8, rax
shl rax, 5
mov r9, qword [0x0072e0e0]
mov rcx, qword [r9 + rax + 8]
mov r9, qword [r9 + rax]
cmp rcx, rdi
jne 0x5045a8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rax
mov rax, r9
call fcn.00403340
test al, al
jne 0x504619
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
jmp 0x5045a8
mov rcx, qword [0x0072e0e8]
mov rax, qword [rsp + 0x40]
cmp rax, rcx
jae 0x5046ca
mov rdx, qword [0x0072e0e0]
mov rbx, qword [rsp + 0x38]
mov byte [rdx + rbx + 0x18], 1
mov rcx, qword [0x0072e0e8]
cmp rax, rcx
jae 0x5046c5
mov rcx, qword [0x0072e0e0]
mov rdx, qword [rsp + 0x50]
cmp rdx, 3
sete byte [rcx + rbx + 0x19]
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
jmp 0x50418d
call fcn.0043a3e0
lea rax, [0x00575a03]
mov ebx, 0x26
call fcn.0043ac60
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x58]
call fcn.0043ac60
lea rax, [0x0056a6fe]
mov ebx, 2
call fcn.0043ac60
call fcn.0043a440
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
nop dword [rax]
jmp 0x50418d
call fcn.0046a900
call fcn.0046a900
call fcn.0046a900
mov r8, qword [0x0072e0e0]
mov byte [r8 + rsi + 0x19], dil
inc rax
cmp rax, rbx
jge 0x50473f
mov rcx, qword [0x0072e0e8]
cmp rax, rcx
jae 0x504760
mov rsi, rax
shl rsi, 5
mov rdi, qword [0x0072e0e0]
mov byte [rdi + rsi + 0x18], 1
cmp rdx, 3
jne 0x504714
mov edi, 1
jmp 0x504731
mov rcx, qword [0x0072e0e8]
nop dword [rax + rax]
cmp rax, rcx
jae 0x504756
mov rdi, qword [0x0072e0e0]
movzx edi, byte [rdi + rsi + 0x1a]
mov rcx, qword [0x0072e0e8]
cmp rax, rcx
jb 0x5046d4
jmp 0x504751
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x60]
jmp 0x50418d
call fcn.0046a900
call fcn.0046a900
nop dword [rax + rax]
call fcn.0046a900
mov rcx, rdx
call fcn.0046a9c0
mov eax, 4
call fcn.0046a9c0
call fcn.0046a940
mov rcx, rdx
nop
call fcn.0046a9c0
call fcn.0046a940
nop
call fcn.00468620
jmp fcn.00504160