Function at 0x412cf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x43f7a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [0x461040]
push ebx
push ebp
push esi
mov ebx, 1
test bl, al
push edi
mov esi, ecx
jne 0x412d28
or dword [0x461040], ebx
mov eax, dword [esi + 4]
mov dword [0x46103c], eax
mov ecx, dword [0x46103c]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
cmp ecx, eax
je 0x412d49
mov edx, dword [esi]
push ebp
push ebp
push 0x8003
push edx
call edi
mov eax, dword [esi + 4]
mov dword [0x46103c], eax
dec eax
cmp eax, 0x1c
ja case.default.0x412fae
movzx eax, byte [eax + 0x4132f8]
jmp dword [eax*4 + 0x4132b0]
cmp dword [0x461038], ebp
jne 0x412d9f
push ebp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.bgm_ss_logo.wav
call fcn.00403510
mov dword [esp + 0x3c], 0xffffffff
call fcn.00421230
mov ecx, eax
call fcn.004213e0
mov dword [0x461038], ebx
mov edi, dword [esi + 8]
mov ecx, 2
add edi, ecx
mov eax, edi
cmp eax, 0x64
mov dword [esi + 8], edi
jle case.default.0x412fae
mov dword [esi + 8], 0x64
mov dword [esi + 4], ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x13e148], eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00404a40
cmp dword [eax + 4], ebp
mov edi, 3
je 0x412df2
mov dword [esi + 4], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esi + 0x13e148]
cmp eax, 0x1388
jbe case.default.0x412fae
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
add ecx, 0xfffffffe
mov eax, ecx
cmp eax, ebp
mov dword [esi + 8], ecx
jg case.default.0x412fae
mov dword [esi + 8], ebp
mov dword [esi + 4], 4
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 8]
add edx, 2
mov eax, edx
cmp eax, 0x64
mov dword [esi + 8], edx
jle case.default.0x412fae
mov dword [esi + 8], 0x64
mov dword [esi + 4], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x13e148], eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00404a40
cmp dword [eax + 4], ebp
mov edi, 6
je 0x412ea2
mov dword [esi + 4], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esi + 0x13e148]
cmp eax, 0xbb8
jbe case.default.0x412fae
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
add ecx, 0xfffffffe
mov eax, ecx
cmp eax, ebp
mov dword [esi + 8], ecx
jg case.default.0x412fae
mov dword [esi + 8], ebp
mov dword [esi + 4], 7
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 8]
add edx, 2
mov eax, edx
cmp eax, 0x64
mov dword [esi + 8], edx
jle case.default.0x412fae
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x441ba8
mov dword [esi + 8], 0x64
mov dword [esi + 4], 8
call fcn.00403510
mov dword [esp + 0x3c], 0xffffffff
call fcn.00421230
mov ecx, eax
call fcn.004213e0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, esi
mov dword [esi + 8], 0x64
call fcn.00412200
test eax, eax
je case.default.0x412fae
mov dword [esi + 4], 9
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
add ecx, 0xfffffffe
mov eax, ecx
cmp eax, ebp
mov dword [esi + 8], ecx
jg case.default.0x412fae
mov eax, dword [esi + 0xc]
cmp eax, 5
mov dword [esi + 8], ebp
ja case.default.0x412fae
jmp dword [eax*4 + 0x413318]
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.0041a2a0
push 0x441b98
mov ecx, edi
call fcn.0041dcf0
lea ecx, [esi + 0x13e280]
mov dword [esi + 4], 0x1d
call fcn.00413400
call fcn.00421230
mov ecx, eax
call fcn.00421360
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.0041a2a0
push 0x441b98
mov ecx, edi
call fcn.0041dcf0
mov dword [esi + 4], 0x19
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, esi
call fcn.00409de0
mov dword [esi + 4], 0xa
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, esi
call fcn.00416c30
mov dword [esi + 4], 0x11
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esi + 0x28]
call fcn.00417bd0
push eax
lea ecx, [esi + 0x13e258]
call fcn.0040b050
mov dword [esi + 4], 0x16
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [esi + 4], 0x1c
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esi + 0x13e280]
call fcn.00413590
cmp eax, 0xffffffff
je 0x413236
cmp eax, ebx
je 0x413118
cmp eax, 2
jne case.default.0x412fae
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x441b8c
mov dword [esi + 4], 0x1a
call fcn.00403510
lea ecx, [esi + 0x28]
call fcn.00412c30
mov ecx, dword [esi]
push ebp
push ebp
push 0x8003
push ecx
call edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esi]
push ebp
push ebp
push 0x8003
push edx
mov dword [esi + 4], 0x1a
call edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esi + 0x13e258]
call fcn.0040b520
jmp 0x413232
lea ecx, [esi + 0x28]
call fcn.00406370
cmp eax, 0xffffffff
je 0x413236
cmp eax, ebx
jne case.default.0x412fae
mov dword [esi + 4], 0x1a
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x4c]
cmp eax, ebp
lea ecx, [esi + 0x28]
je 0x41318f
xor eax, eax
jmp 0x413191
mov eax, dword [ecx]
test eax, 0x2020
je 0x41319e
mov dword [esi + 0x13e144], ebx
call fcn.0041db60
cmp eax, ebp
je case.default.0x412fae
cmp eax, 0xfffffffe
je 0x413219
cmp eax, ebx
je 0x4131e1
mov eax, dword [esi]
push ebp
push ebp
push 0x8003
push eax
mov dword [esi + 4], 7
mov dword [esi + 0xc], 0xffffffff
call edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esi + 0x13e28c]
mov dword [esi + 4], 0x17
call fcn.00422140
mov ecx, dword [esi]
push ebp
push ebp
push 0x8003
push ecx
mov dword [esi + 0xc], 0xffffffff
call edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esi]
push ebp
push ebp
push 0x10
push edx
jmp 0x413296
mov ecx, esi
call fcn.00409ca0
jmp 0x413232
mov ecx, esi
call fcn.004177f0
test eax, eax
je case.default.0x412fae
mov dword [esi + 4], 7
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esi + 0x13e28c]
call fcn.00421d30
test eax, eax
je case.default.0x412fae
mov dword [esi + 8], ebp
mov dword [esi + 4], 7
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call fcn.00421230
mov ecx, eax
call fcn.00421360
mov eax, dword [esi]
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret