Function at 0x522520
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x188]
cmp r12, qword [r14 + 0x10]
jbe 0x5230a7
push rbp
mov rbp, rsp
sub rsp, 0x200
mov qword [rsp + 0x210], rax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x218], rbx
lea rax, [0x005e57a0]
nop dword [rax]
call fcn.0040c6c0
mov qword [rsp + 0x190], rax
nop
lea rax, [0x005e2b20]
call fcn.0040c6c0
mov rcx, qword [rsp + 0x1a8]
mov qword [rax], rcx
cmp dword [0x0078db00], 0
jne 0x522598
mov rdx, qword [rsp + 0x218]
jmp 0x5225a8
call fcn.00460ca0
mov rdx, qword [rsp + 0x218]
mov qword [r11], rdx
mov qword [rsp + 0x188], rax
mov qword [rax + 8], rdx
movups xmmword [rax + 0x10], xmm15
movabs rcx, 0x7fffffffffffffff
mov qword [rax + 0x20], rcx
lea rax, [0x005bb560]
call fcn.0040c6c0
mov qword [rsp + 0x1b0], rax
mov rcx, qword [rsp + 0x1a8]
mov rdx, qword [rcx + 0x18]
mov rbx, rax
mov edi, 0x60
xor esi, esi
mov rax, qword [rsp + 0x218]
mov rcx, rdi
call rdx
nop
test rbx, rbx
jne 0x522b01
mov rdx, qword [rsp + 0x1b0]
cmp byte [rdx], 0x4d
jne 0x522736
cmp byte [rdx + 1], 0x5a
nop
jne 0x522736
mov ecx, dword [rdx + 0x3c]
mov qword [rsp + 0x80], rcx
nop
lea rax, [0x005bb500]
call fcn.0040c6c0
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rsp + 0x1a8]
mov rdx, qword [rcx + 0x18]
mov rbx, rax
mov edi, 4
mov rsi, qword [rsp + 0x80]
mov rax, qword [rsp + 0x218]
mov rcx, rdi
call rdx
mov rcx, qword [rsp + 0x1b8]
cmp byte [rcx], 0x50
jne 0x52269f
cmp byte [rcx + 1], 0x45
jne 0x52269f
cmp byte [rcx + 2], 0
jne 0x52269f
cmp byte [rcx + 3], 0
jne 0x52269f
mov rdx, qword [rsp + 0x80]
add rdx, 4
jmp 0x522738
movabs rdx, 0xeab7c2c74a1702fd
mov qword [rsp + 0xf2], rdx
movabs rdx, 0xe8ec4b031048d3c6
mov qword [rsp + 0xfa], rdx
movabs rdx, 0xa583c477504e8ec
mov qword [rsp + 0x100], rdx
movabs rdx, 0xd07e73c976e94167
mov qword [rsp + 0x108], rdx
movabs rdx, 0x36ada7a5175f6c6c
mov qword [rsp + 0xd4], rdx
movabs rdx, 0x3879216656d8728a
mov qword [rsp + 0xdc], rdx
movabs rdx, 0x6a093220f46f3879
mov qword [rsp + 0xe2], rdx
movabs rdx, 0xa8a2b257c47c310e
mov qword [rsp + 0xea], rdx
xor eax, eax
jmp 0x523013
xor edx, edx
mov qword [rsp + 0x58], rdx
mov rbx, qword [rsp + 0x188]
mov r9, qword [rbx + 0x10]
lea r10, [rdx + r9]
cmp r9, r10
jg 0x522756
mov qword [rbx + 0x18], r10
lea rax, [0x006232e8]
lea rcx, [0x00624ad0]
lea rdi, [0x0078d860]
lea rsi, [0x005b1980]
mov r8, qword [rsp + 0x190]
call fcn.0051bc60
nop
test rax, rax
jne 0x522af0
mov rax, qword [rsp + 0x190]
movzx edx, word [rax]
cmp dx, 0x5032
ja 0x5227d7
nop dword [rax + rax]
cmp dx, 0x14c
ja 0x5227c0
test dx, dx
je 0x5228ad
cmp dx, 0x14c
jne 0x522816
jmp 0x5228ad
cmp dx, 0x1c4
je 0x5228ad
cmp dx, 0x5032
jne 0x522816
jmp 0x5228ad
cmp dx, 0x5128
ja 0x522800
nop
cmp dx, 0x5064
je 0x5228ad
cmp dx, 0x5128
jne 0x522816
jmp 0x5228ad
cmp dx, 0x8664
je 0x5228ad
cmp dx, 0xaa64
je 0x5228ad
movabs rdx, 0x7b2d7188f50d8859
mov qword [rsp + 0x9c], rdx
movabs rdx, 0xc443cea43d9664d7
mov qword [rsp + 0xa4], rdx
movabs rdx, 0x8a07e6a2c443cea4
mov qword [rsp + 0xa8], rdx
movabs rdx, 0x2be8a358cceb59fb
mov qword [rsp + 0xb0], rdx
movabs rdx, 0x154a1eeb907fe62c
mov qword [rsp + 0xb8], rdx
movabs rdx, 0xe4069e8459f31ebe
mov qword [rsp + 0xc0], rdx
movabs rdx, 0xe26487cfe4069e84
mov qword [rsp + 0xc4], rdx
movabs rdx, 0x53cb8678f68e3792
mov qword [rsp + 0xcc], rdx
xor ecx, ecx
jmp 0x522f62
lea rbx, [0x00623588]
mov rcx, qword [rsp + 0x188]
nop dword [rax]
call fcn.00525a80
mov rdx, qword [rsp + 0x190]
mov qword [rdx + 0x78], rbx
mov qword [rdx + 0x80], rcx
cmp dword [0x0078db00], 0
nop
je 0x5228f2
call fcn.00460cc0
mov qword [r11], rax
mov r8, qword [rdx + 0x70]
mov qword [r11 + 8], r8
mov qword [rdx + 0x70], rax
test rdi, rdi
jne 0x522adf
mov rax, rdx
lea rbx, [0x00623588]
mov rcx, qword [rsp + 0x188]
call fcn.00525f60
mov rdx, qword [rsp + 0x190]
mov qword [rdx + 0x60], rbx
mov qword [rdx + 0x68], rcx
cmp dword [0x0078db00], 0
je 0x52293f
call fcn.00460cc0
mov qword [r11], rax
mov r9, qword [rdx + 0x58]
mov qword [r11 + 8], r9
mov qword [rdx + 0x58], rax
test rdi, rdi
jne 0x522ace
mov rdi, qword [rdx + 0x70]
mov rsi, qword [rdx + 0x78]
mov r8, qword [rdx + 0x80]
nop dword [rax + rax]
call fcn.005266e0
mov rdx, qword [rsp + 0x190]
mov qword [rdx + 0x48], rbx
mov qword [rdx + 0x50], rcx
cmp dword [0x0078db00], 0
je 0x522990
nop
call fcn.00460cc0
mov qword [r11], rax
mov r8, qword [rdx + 0x40]
mov qword [r11 + 8], r8
mov qword [rdx + 0x40], rax
test rdi, rdi
jne 0x522abd
mov rcx, qword [rdx]
mov qword [rsp + 0x88], rcx
movups xmm0, xmmword [rdx + 4]
movups xmmword [rsp + 0x8c], xmm0
lea rax, [0x005e5560]
lea rbx, [rsp + 0x88]
call fcn.0051cee0
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rbx, qword [rsp + 0x188]
mov rdx, qword [rbx + 0x10]
add rcx, rdx
nop
cmp rdx, rcx
jle 0x5229f5
mov rdx, qword [0x007398c0]
mov rsi, qword [0x007398c8]
jmp 0x522a00
mov qword [rbx + 0x18], rcx
xor edx, edx
xor esi, esi
nop dword [rax]
test rdx, rdx
jne 0x522aac
mov rdx, qword [rsp + 0x190]
movzx ecx, word [rdx + 0x10]
lea rax, [0x00623588]
nop dword [rax]
call fcn.00523280
mov rdx, qword [rsp + 0x190]
mov qword [rdx + 0x18], rax
cmp dword [0x0078db00], 0
je 0x522a4a
call fcn.00460cc0
mov qword [r11], rbx
mov rsi, qword [rdx + 0x20]
mov qword [r11 + 8], rsi
mov qword [rdx + 0x20], rbx
test rcx, rcx
jne 0x522a9b
movzx ecx, word [rdx + 2]
lea rax, [0x005ca180]
mov rbx, rcx
call fcn.00447980
mov rdx, qword [rsp + 0x190]
movzx esi, word [rdx + 2]
mov qword [rdx + 0x30], rsi
mov qword [rdx + 0x38], rsi
cmp dword [0x0078db00], 0
je 0x522a93
call fcn.00460cc0
mov qword [r11], rax
mov r9, qword [rdx + 0x28]
mov qword [r11 + 8], r9
mov qword [rdx + 0x28], rax
xor eax, eax
jmp 0x522b1a
xor eax, eax
mov rbx, rcx
mov rcx, rdi
add rsp, 0x200
pop rbp
ret
xor eax, eax
mov rbx, rdx
mov rcx, rsi
add rsp, 0x200
pop rbp
ret
xor eax, eax
mov rbx, rdi
mov rcx, rsi
add rsp, 0x200
pop rbp
ret
xor eax, eax
mov rbx, rdi
mov rcx, rsi
add rsp, 0x200
pop rbp
ret
xor eax, eax
mov rbx, rdi
mov rcx, rsi
add rsp, 0x200
pop rbp
ret
mov rcx, rbx
mov rbx, rax
xor eax, eax
add rsp, 0x200
pop rbp
ret
xor eax, eax
add rsp, 0x200
pop rbp
ret
mov qword [r12 + r11*8], r9
lea r9, [r11 + 1]
mov rdx, rax
mov rax, r9
movzx r9d, word [rdx + 2]
nop
cmp rax, r9
jge 0x522e5c
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x150], xmm15
movups xmmword [rsp + 0x158], xmm15
movups xmmword [rsp + 0x168], xmm15
lea rax, [0x006232e8]
mov rbx, qword [rsp + 0x188]
lea rcx, [0x00624ad0]
lea rdi, [0x0078d860]
lea rsi, [0x005bebe0]
lea r8, [rsp + 0x150]
call fcn.0051bc60
nop word [rax + rax]
test rax, rax
jne 0x522e4b
mov rdx, qword [rsp + 0x190]
mov rbx, qword [rdx + 0x70]
mov rcx, qword [rdx + 0x78]
mov rdi, qword [rdx + 0x80]
lea rax, [rsp + 0x150]
call fcn.00525680
test rcx, rcx
jne 0x522e3a
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x68], rbx
lea rax, [0x005e3400]
call fcn.0040c6c0
mov qword [rsp + 0x1a0], rax
movups xmmword [rsp + 0x1d0], xmm15
movups xmmword [rsp + 0x1e0], xmm15
movups xmmword [rsp + 0x1f0], xmm15
mov rcx, qword [rsp + 0x198]
mov qword [rsp + 0x1d0], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x1d8], rcx
mov ecx, dword [rsp + 0x158]
mov dword [rsp + 0x1e0], ecx
mov ecx, dword [rsp + 0x15c]
mov dword [rsp + 0x1e4], ecx
mov ecx, dword [rsp + 0x160]
mov dword [rsp + 0x1e8], ecx
mov ecx, dword [rsp + 0x164]
mov dword [rsp + 0x1ec], ecx
mov ecx, dword [rsp + 0x168]
mov dword [rsp + 0x1f0], ecx
mov ecx, dword [rsp + 0x16c]
mov dword [rsp + 0x1f4], ecx
movzx ecx, word [rsp + 0x170]
mov word [rsp + 0x1f8], cx
movzx ecx, word [rsp + 0x172]
mov word [rsp + 0x1fa], cx
mov ecx, dword [rsp + 0x174]
mov dword [rsp + 0x1fc], ecx
cmp dword [0x0078db00], 0
je 0x522cb9
mov rbx, rax
lea rcx, [rsp + 0x1d0]
lea rax, [0x005e6900]
call fcn.00411960
mov rax, qword [rsp + 0x1a0]
movups xmm0, xmmword [rsp + 0x1d0]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rsp + 0x1e0]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [rsp + 0x1f0]
movups xmmword [rax + 0x20], xmm0
mov ecx, dword [rax + 0x1c]
mov qword [rsp + 0x80], rcx
mov edx, dword [rax + 0x18]
movabs rbx, 0x7fffffffffffffff
sub rbx, rdx
mov qword [rsp + 0x78], rbx
add rdx, rcx
mov qword [rsp + 0x60], rdx
mov esi, dword [rsp + 0x164]
mov dword [rsp + 0x34], esi
test esi, esi
lea rax, [0x005e2b20]
call fcn.0040c6c0
mov ecx, dword [rsp + 0x34]
test ecx, ecx
mov rcx, qword [rsp + 0x1a8]
lea rdx, [0x00623308]
mov rbx, rcx
cmove rcx, rdx
mov qword [rax], rcx
mov rcx, qword [rsp + 0x218]
lea rsi, [0x0078d860]
mov rdi, rcx
cmove rcx, rsi
mov rsi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
cmp rsi, r8
movabs r8, 0x7fffffffffffffff
mov r9, qword [rsp + 0x60]
cmovle r8, r9
cmp dword [0x0078db00], 0
je 0x522d88
nop
call fcn.00460ca0
mov qword [r11], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r8
cmp dword [0x0078db00], 0
nop
jne 0x522dac
mov r9, qword [rsp + 0x1a0]
jmp 0x522dc4
call fcn.00460cc0
mov qword [r11], rax
mov r9, qword [rsp + 0x1a0]
mov r10, qword [r9 + 0x58]
mov qword [r11 + 8], r10
mov qword [r9 + 0x58], rax
lea r10, [0x00623328]
mov qword [r9 + 0x48], r10
cmp dword [0x0078db00], 0
je 0x522df0
nop dword [rax]
call fcn.00460cc0
mov qword [r11], rax
mov r12, qword [r9 + 0x50]
mov qword [r11 + 8], r12
mov qword [r9 + 0x50], rax
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 0x30]
mov r11, qword [rsp + 0x50]
cmp r11, rcx
jae 0x522f3d
mov r12, qword [rax + 0x28]
cmp dword [0x0078db00], 0
je 0x522b0c
mov rcx, r11
call fcn.00460cc0
mov qword [r11], r9
mov r13, qword [r12 + rcx*8]
mov qword [r11 + 8], r13
mov r11, rcx
jmp 0x522b0c
xor eax, eax
mov rbx, rcx
mov rcx, rdi
add rsp, 0x200
pop rbp
ret
mov rcx, rbx
mov rbx, rax
xor eax, eax
add rsp, 0x200
pop rbp
ret
mov rsi, qword [rdx + 0x30]
mov qword [rsp + 0x70], rsi
mov rcx, qword [rsp + 0x188]
xor eax, eax
jmp 0x522e82
lea rax, [r9 + 1]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x188]
cmp rax, rsi
jge 0x522f1a
mov rdi, qword [rdx + 0x30]
cmp rax, rdi
jae 0x522f35
mov qword [rsp + 0x48], rax
mov rsi, qword [rdx + 0x28]
mov rsi, qword [rsi + rax*8]
test byte [rsi], al
lea rbx, [0x00623588]
mov rax, rsi
call fcn.00525760
mov rdx, qword [rsp + 0x190]
mov r8, qword [rdx + 0x30]
mov r9, qword [rsp + 0x48]
cmp r9, r8
jae 0x522f2a
mov r8, qword [rdx + 0x28]
mov r8, qword [r8 + r9*8]
mov qword [r8 + 0x38], rbx
mov qword [r8 + 0x40], rcx
cmp dword [0x0078db00], 0
je 0x522ef5
call fcn.00460cc0
mov qword [r11], rax
mov r10, qword [r8 + 0x30]
mov qword [r11 + 8], r10
mov qword [r8 + 0x30], rax
nop dword [rax]
test rdi, rdi
je 0x522e71
xor eax, eax
mov rbx, rdi
mov rcx, rsi
add rsp, 0x200
pop rbp
ret
mov rax, rdx
xor ebx, ebx
xor ecx, ecx
add rsp, 0x200
pop rbp
ret
mov rax, r9
mov rcx, r8
call fcn.00461020
mov rcx, rdi
call fcn.00461020
mov rax, r11
call fcn.00461020
movzx edx, byte [rsp + rcx + 0x9c]
movzx esi, byte [rsp + rcx + 0xb8]
xor esi, edx
mov byte [rsp + rcx + 0xb8], sil
inc rcx
cmp rcx, 0x1c
jl 0x522f45
lea rax, [rsp + 0x130]
lea rbx, [rsp + 0xb8]
mov ecx, 0x1c
nop dword [rax]
call fcn.0044bb20
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x1c0], xmm15
mov rdx, qword [rsp + 0x190]
movzx edx, word [rdx]
mov eax, edx
call fcn.00409da0
lea rdx, [0x005ba600]
mov qword [rsp + 0x1c0], rdx
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x38]
lea rcx, [rsp + 0x1c0]
mov edi, 1
mov rsi, rdi
call fcn.0050d3e0
mov rcx, rbx
mov rbx, rax
xor eax, eax
add rsp, 0x200
pop rbp
ret
movzx edx, byte [rsp + rax + 0xf2]
movzx esi, byte [rsp + rax + 0xd4]
add edx, esi
mov byte [rsp + rax + 0xd4], dl
inc rax
cmp rax, 0x1e
jl 0x522ff7
lea rax, [rsp + 0x110]
lea rbx, [rsp + 0xd4]
mov ecx, 0x1e
call fcn.0044bb20
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x40], rbx
movups xmmword [rsp + 0x1c0], xmm15
lea rax, [0x005bb500]
mov rbx, qword [rsp + 0x1b8]
call fcn.00409d20
lea rdx, [0x005bb500]
mov qword [rsp + 0x1c0], rdx
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x1c0]
mov edi, 1
mov rsi, rdi
call fcn.0050d3e0
mov rcx, rbx
mov rbx, rax
xor eax, eax
add rsp, 0x200
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045eda0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00522520