Function at 0x100319a0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

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 0x1006597e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x10081080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x38]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 0x14], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1003b671
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
lea esi, [edi + 0x40]
mov dword [ebp - 0x14], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1003b671
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x48]
mov dword [ebp - 0x14], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1003b671
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov byte [ebp - 4], 6
push 0x18
mov dword [edi + 0x20], 0
mov dword [edi + 0x6c], 0x64
mov dword [edi + 0x24], 0
call fcn.1003b671
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x38], xmm0
push 0xf
push str.._spellsets.ini
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.100054c0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
mov dword [ebp - 0x18], 1
call fcn.10002f30
mov dword [ebp - 0x14], esi
push 0x10
mov dword [ebp - 4], 0xa
call fcn.1003b671
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_IO_ini_.0
mov dword [eax + 0xc], esi
mov dword [edi], esi
mov esi, dword [edi + 4]
mov dword [edi + 4], eax
test esi, esi
je 0x10031bc8
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10031bc8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10031bc8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10031c03
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031bf9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031eb8
push ecx
push edx
call fcn.1003b6a6
add esp, 8
mov esi, dword [ebp - 0x1c]
sub esp, 0x28
mov eax, esp
mov ecx, dword [esi + 0x30]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_SpellSets::constructor_class_ZealService__::_2::_lambda_1___void___.0
mov dword [eax + 4], edi
push 3
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_SpellSets::constructor_class_ZealService__::_2::_lambda_2___void___.0
mov dword [eax + 4], edi
mov dword [eax + 0x24], eax
call fcn.1001eaf0
mov ecx, dword [esi + 0x30]
sub esp, 0x28
mov eax, esp
push 4
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_SpellSets::constructor_class_ZealService__::_2::_lambda_3___void___.0
mov dword [eax + 4], edi
mov dword [eax + 0x24], eax
call fcn.1001eaf0
mov esi, dword [esi + 8]
sub esp, 0x18
mov ecx, esp
xorps xmm0, xmm0
push 0x10
movups xmmword [ecx], xmm0
push str.FinishMemorizing
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054c0
push 0xffffffffffffffff
push 2
push 0x100301f0
push 0x434b38
mov ecx, esi
call fcn.10011060
mov esi, dword [ebp - 0x1c]
sub esp, 0x18
mov ecx, esp
xorps xmm0, xmm0
mov esi, dword [esi + 8]
push 0xe
movups xmmword [ecx], xmm0
push str.FinishScribing
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054c0
push 0xffffffffffffffff
push 2
push 0x10030360
push 0x43501f
mov ecx, esi
call fcn.10011060
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push str.SpellGemRbutton
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
call fcn.100054c0
mov ecx, 0x5a67b0
mov byte [ebp - 4], 0xb
call fcn.10007830
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jge 0x10031d38
nop dword [eax]
add ecx, 0x5a67b0
call fcn.10007830
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jl 0x10031d20
push 0x18
call fcn.1003b671
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0xc
xorps xmm0, xmm0
mov eax, dword [ebp - 0x18]
movups xmmword [esi], xmm0
push 1
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x10], eax
call fcn.1003b671
mov ecx, dword [ebp - 0x18]
mov edx, 0x5a67b0
push ecx
mov byte [eax], cl
mov ecx, eax
mov dword [esi], eax
mov dword [esi + 8], 0x5a67b0
mov dword [esi + 4], 0x10030590
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.0x10031d9e
jmp dword [eax*4 + 0x10031ec4]
push 0x10030590
push 0x5a67b0
mov ecx, esi
call fcn.1001cf40
jmp case.default.0x10031d9e
push 0x10030590
push 0x5a67b0
mov ecx, esi
call fcn.1001d1c0
jmp case.default.0x10031d9e
push 0x10030590
push 0x5a67b0
mov ecx, esi
call fcn.1001d2a0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
push eax
call fcn.10008ae0
mov byte [ebp - 4], 6
mov dword [eax], esi
mov dword [esi + 0x14], 2
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10031e2d
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031e23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031ebd
push ecx
push edx
call fcn.1003b6a6
add esp, 8
cmp byte [0x8092d8], 0
je 0x10031ea0
mov ecx, dword [ebp - 0x1c]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x20], esp
mov esi, dword [ecx + 0x28]
mov dword [eax], 0x10073284
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
xorps xmm0, xmm0
push 9
movups xmmword [ecx], xmm0
push str._spellset
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100054c0
sub esp, 0xc
mov ecx, esi
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [ebp - 4], 6
call fcn.100160f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10042864
call fcn.10042864
nop
mov eax, 0xb810031d
sbb eax, 497356803
add edx, dword [eax]
retf