Function at 0x10048930
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 0x10083fa6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x100a9080]
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.10055fcd
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.10055fcd
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.10055fcd
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.10055fcd
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.10055fcd
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 0x10048b58
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10048b58
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10048b58
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 0x10048b93
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048b89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048e78
push ecx
push edx
call fcn.10056002
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.10035e40
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.10035e40
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.10035e40
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 0x100470c0
push 0x434b38
mov ecx, esi
call fcn.10027230
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 0x10047220
push 0x43501f
mov ecx, esi
call fcn.10027230
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.1000d330
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jge 0x10048cc8
nop dword [eax]
add ecx, 0x5a67b0
call fcn.1000d330
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jl 0x10048cb0
push 0x18
call fcn.10055fcd
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.10055fcd
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], 0x100474a0
mov dword [esi + 0x14], 2
mov dword [esi + 0xc], 0
call fcn.10037ff0
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, 3
ja case.default.0x10048d2e
jmp dword [eax*4 + 0x10048e84]
push 0x100474a0
push 0x5a67b0
mov ecx, esi
call fcn.10033e50
jmp case.default.0x10048d2e
push 0x100474a0
push 0x5a67b0
mov ecx, esi
call fcn.100340d0
jmp case.default.0x10048d2e
push 0x100474a0
push 0x5a67b0
mov ecx, esi
call fcn.10034180
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
push eax
call fcn.1000e200
mov byte [ebp - 4], 6
mov dword [eax], esi
mov dword [esi + 0x14], 2
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x10048dbd
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10048db3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10048e7d
push ecx
push edx
call fcn.10056002
add esp, 8
cmp byte [0x8092d8], 0
je 0x10048e60
mov ecx, dword [ebp - 0x1c]
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x20], esp
mov esi, dword [ecx + 0x38]
mov dword [eax], 0x1009736c
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.1002cdd0
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.1005d2a4
call fcn.1005d2a4
nop
dec eax
lea eax, [eax + edx]
dec eax
lea eax, [eax + edx]
xor eax, 0x5b10048d
lea eax, [eax + edx]
int3