Function at 0x414f40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x51bb38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x58]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x53020c
push edx
mov dword [esp + 0x48], 0
call fcn.004024a0
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
mov ecx, 0x589134
call fcn.004095a0
mov esi, dword [sym.imp.rgss102j.dll_RGSSGetInt]
push 0x5302f8
call esi
push 0x5302ec
mov edi, eax
call esi
push 0x5302e0
mov ebx, eax
call esi
push 0x5302cc
mov dword [esp + 0x30], eax
call esi
push 0x5302b8
mov ebp, eax
call esi
push 0x5302a8
mov dword [esp + 0x30], eax
call esi
push 0x530294
mov dword [esp + 0x40], eax
call esi
push 0x53027c
mov dword [esp + 0x48], eax
call esi
push 0x530270
mov dword [esp + 0x50], eax
call esi
add esp, 0x24
mov esi, eax
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
test edi, edi
mov byte [esp + 0x38], 1
jne 0x415044
add ebx, 0xe5
push ebx
call fcn.004fc27e
test eax, eax
je 0x415087
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00401f20
jmp 0x415087
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 0x52fe54
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
add esp, 0x10
test eax, eax
jne 0x41506e
xor ecx, ecx
jmp 0x41507c
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x415073
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401ff0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push 0
push 0
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x34]
push 1
call fcn.004f8624
lea ecx, [esp + 0x10]
call fcn.00401890
test ebp, ebp
mov edi, dword [esp + 0x18]
jne 0x4150be
cmp edi, 1
je 0x41519b
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
test edi, edi
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x20]
jne 0x415100
push 0xdd
call fcn.00402700
mov eax, dword [eax]
push ebp
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x44], 3
call fcn.004024a0
add esp, 0xc
jmp 0x415147
test ebp, ebp
jne 0x415126
push 0xde
call fcn.00402700
mov eax, dword [eax]
push edi
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x44], 4
call fcn.004024a0
add esp, 0xc
jmp 0x415147
push 0xdf
call fcn.00402700
mov eax, dword [eax]
push edi
push ebp
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x48], 5
call fcn.004024a0
add esp, 0x10
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41516a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004022f0
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41519b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x24]
cmp ebp, 0x64
jge 0x4152ae
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4151f9
push 0xe3
lea ecx, [esp + 0x28]
call fcn.00402700
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 6
call fcn.004022f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4151f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 7
mov byte [esp + 0x38], bl
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0xe0
mov byte [esp + 0x3c], 8
call fcn.004fc27e
test eax, eax
je 0x41524b
push 0xe0
push eax
lea ecx, [esp + 0x20]
call fcn.00401f20
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x24]
push edi
push eax
mov byte [esp + 0x44], 9
call fcn.004024a0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41527d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004022f0
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4152ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x4153c1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41530c
push 0xe3
lea ecx, [esp + 0x2c]
call fcn.00402700
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0xa
call fcn.004022f0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41530c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 0xb
mov byte [esp + 0x38], bl
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
push 0xe1
mov byte [esp + 0x3c], 0xc
call fcn.004fc27e
test eax, eax
je 0x41535e
push 0xe1
push eax
lea ecx, [esp + 0x28]
call fcn.00401f20
mov edi, dword [esp + 0x20]
push ebp
lea eax, [esp + 0x1c]
push edi
push eax
mov byte [esp + 0x44], 0xd
call fcn.004024a0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004022f0
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4153c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x2c]
test edi, edi
jle 0x415510
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41541e
push 0xe3
lea ecx, [esp + 0x30]
call fcn.00402700
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0xe
call fcn.004022f0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41541e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x30]
push edi
push eax
mov byte [esp + 0x44], 0xf
call fcn.0045a6a0
add esp, 0xc
mov ebp, eax
mov bl, 0x10
mov byte [esp + 0x38], bl
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
push 0xe2
mov byte [esp + 0x3c], 0x11
call fcn.004fc27e
test eax, eax
je 0x415487
push 0xe2
push eax
lea ecx, [esp + 0x28]
call fcn.00401f20
mov edi, dword [esp + 0x20]
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
mov byte [esp + 0x44], 0x12
call fcn.004024a0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x38], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4154bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4154df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004022f0
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x415538
push 0xe4
call fcn.004fc27e
test eax, eax
je 0x415538
push 0xe4
push eax
lea ecx, [esp + 0x18]
call fcn.00401f20
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x20]
push 1
push edx
call fcn.004f8286
push esi
lea eax, [esp + 0x14]
push 0x53026c
push eax
call fcn.004024a0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push esi
push 2
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004f8286
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
jg 0x415598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4155be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4