Function at 0x100a7b70
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 0x100f9786
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x10136080]
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.100b6050
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.100b6050
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.100b6050
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.100b6050
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.10007860
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
mov dword [ebp - 0x18], 1
call fcn.10005160
mov dword [ebp - 0x14], esi
push 0x10
mov dword [ebp - 4], 0xa
call fcn.100b6050
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 0x100a7d98
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100a7d98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x100a7d98
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 0x100a7dd3
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a7dc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a80b8
push ecx
push edx
call fcn.100b6085
add esp, 8
mov esi, dword [ebp - 0x1c]
sub esp, 0x28
mov eax, esp
mov ecx, dword [esi + 0x40]
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.10039ca0
mov ecx, dword [esi + 0x40]
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.10039ca0
mov ecx, dword [esi + 0x40]
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.10039ca0
mov esi, dword [esi + 0x10]
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.10007860
push 0xffffffffffffffff
push 2
push 0x100a6290
push 0x434b38
mov ecx, esi
call fcn.100217d0
mov esi, dword [ebp - 0x1c]
sub esp, 0x18
mov ecx, esp
xorps xmm0, xmm0
mov esi, dword [esi + 0x10]
push 0xe
movups xmmword [ecx], xmm0
push str.FinishScribing
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10007860
push 0xffffffffffffffff
push 2
push 0x100a63f0
push 0x43501f
mov ecx, esi
call fcn.100217d0
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 + 0x10]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
call fcn.10007860
mov ecx, 0x5a67b0
mov byte [ebp - 4], 0xb
call fcn.1000d360
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jge 0x100a7f08
nop dword [eax]
add ecx, 0x5a67b0
call fcn.1000d360
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jl 0x100a7ef0
push 0x18
call fcn.100b6050
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.100b6050
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], 0x100a6670
mov dword [esi + 0x14], 2
mov dword [esi + 0xc], 0
call fcn.1003be00
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, 3
ja case.default.0x100a7f6e
jmp dword [eax*4 + 0x100a80c4]
push 0x100a6670
push 0x5a67b0
mov ecx, esi
call fcn.10037b40
jmp case.default.0x100a7f6e
push 0x100a6670
push 0x5a67b0
mov ecx, esi
call fcn.10037dc0
jmp case.default.0x100a7f6e
push 0x100a6670
push 0x5a67b0
mov ecx, esi
call fcn.10037e70
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
push eax
call fcn.1000e230
mov byte [ebp - 4], 6
mov dword [eax], esi
mov dword [esi + 0x14], 2
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x100a7ffd
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a7ff3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a80bd
push ecx
push edx
call fcn.100b6085
add esp, 8
cmp byte [0x8092d8], 0
je 0x100a80a0
mov ecx, dword [ebp - 0x1c]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x20], esp
mov esi, dword [ecx + 0x38]
mov dword [eax], 0x1010cc24
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
mov dword [ebp - 0x14], esp
xorps xmm0, xmm0
push 0x2a
movups xmmword [ecx], xmm0
push str.Load__save__delete_or_list_your_spellsets.
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10007860
sub esp, 0x18
mov byte [ebp - 4], 0xe
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.10007860
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.10030530
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.100bd324
call fcn.100bd324
nop
mov byte [edi + 0xa], bh
adc byte [eax + 1963985535], cl
jg 0x100a80d9
adc byte [ebx - 0x33eff581], bl
int3
int3