Function at 0x1000851d
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062dcb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
mov eax, dword [0x10081080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x18], esi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 5
mov eax, dword [0x809478]
test eax, eax
je 0x100082dc
mov eax, dword [eax + 0x5ac]
cmp eax, 0xffffffff
je 0x100082dc
cmp eax, 5
jne 0x100082dc
call fcn.10007e60
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x40]
push 7
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
push str.SetItem
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.100054c0
mov ecx, 0x423640
mov byte [ebp - 4], 1
call fcn.10007830
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 5
jge 0x10008338
nop
add ecx, 0x423640
call fcn.10007830
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 5
jl 0x10008320
push 0x18
call fcn.1003b671
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov byte [ebp - 4], 2
movups xmmword [esi], xmm0
push 1
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x10], eax
call fcn.1003b671
mov ecx, dword [ebp - 0x20]
mov edx, 0x423640
push ecx
mov byte [eax], cl
mov ecx, eax
mov dword [esi], eax
mov dword [esi + 8], 0x423640
mov dword [esi + 4], 0x10007fd0
mov dword [esi + 0x14], 2
mov dword [esi + 0xc], 0
call fcn.1001fee0
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, 3
ja case.default.0x1000839e
jmp dword [eax*4 + 0x100086ac]
push 0x10007fd0
push 0x423640
mov ecx, esi
call fcn.1001cf40
jmp case.default.0x1000839e
push 0x10007fd0
push 0x423640
mov ecx, esi
call fcn.1001d1c0
jmp case.default.0x1000839e
push 0x10007fd0
push 0x423640
mov ecx, esi
call fcn.1001d2a0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.10008ae0
mov byte [ebp - 4], 0
mov dword [eax], esi
mov dword [esi + 0x14], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1000842d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008423
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100086a0
push ecx
push edx
call fcn.1003b6a6
add esp, 8
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.SetSpell
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.100054c0
mov ecx, 0x425957
mov byte [ebp - 4], 3
call fcn.10007830
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 5
jge 0x1000848a
add ecx, 0x425957
call fcn.10007830
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 5
jl 0x10008472
push 0x18
call fcn.1003b671
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov byte [ebp - 4], 4
movups xmmword [esi], xmm0
push 1
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x10], eax
call fcn.1003b671
mov ecx, dword [ebp - 0x20]
mov edx, 0x425957
push ecx
mov byte [eax], cl
mov ecx, eax
mov dword [esi], eax
mov dword [esi + 8], 0x425957
mov dword [esi + 4], 0x10008130
mov dword [esi + 0x14], 2
mov dword [esi + 0xc], 0
call fcn.1001fee0
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, 3
ja case.default.0x100084f0
jmp dword [eax*4 + 0x100086bc]
push 0x10008130
push 0x425957
mov ecx, esi
call fcn.1001cf40
jmp case.default.0x100084f0
push 0x10008130
push 0x425957
mov ecx, esi
call fcn.1001d1c0
jmp case.default.0x100084f0
push 0x10008130
push 0x425957
mov ecx, esi
call fcn.1001d2a0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.10008ae0
mov byte [ebp - 4], 0
mov dword [eax], esi
mov dword [esi + 0x14], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1000857f
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008575
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100086a5
push ecx
push edx
call fcn.1003b6a6
add esp, 8
mov esi, dword [ebp - 0x18]
sub esp, 0x28
mov eax, esp
mov ecx, dword [esi + 0x30]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_ItemDisplay::constructor_class_ZealService___class_IO_ini__::_2::_lambda_1___void___.0
mov dword [eax + 4], edi
push 5
mov dword [eax + 0x24], eax
call fcn.1001eaf0
mov ecx, dword [esi + 0x30]
sub esp, 0x28
mov eax, esp
push 2
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_ItemDisplay::constructor_class_ZealService___class_IO_ini__::_2::_lambda_2___void___.0
mov dword [eax + 4], edi
mov dword [eax + 0x24], eax
call fcn.1001eaf0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 1
push 0x4090ab
mov byte [ebp - 0x19], 0xeb
call esi
mov al, byte [ebp - 0x19]
mov byte [0x4090ab], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 1
push 0x4090ab
call esi
lea eax, [ebp - 0x18]
mov byte [ebp - 0x19], 0xeb
push eax
push 0x40
push 1
push 0x40a4c4
call esi
mov al, byte [ebp - 0x19]
mov byte [0x40a4c4], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 1
push 0x40a4c4
call esi
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0xe
push 0x421ebf
call esi
mov eax, 0x421ebf
mov ecx, 0x90909090
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], cx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 0xe
push 0x421ebf
call esi
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0xe
push 0x4e81e0
call esi
mov eax, 0x4e81e0
mov ecx, 0x90909090
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], cx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 0xe
push 0x4e81e0
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003b65e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.10042864
call fcn.10042864
nop
mov eax, 0xb8100083
add dword [eax], 16
movsd dword es:[edi], dword [esi]
add dword [eax], 16
retf