Function at 0x80d4c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0xa66a00
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0xcdc190]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xcdc190]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, 9
mov esi, 0xdb70cc
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x10
xor edi, edi
push edi
push str.FortuneResultTag1
push str.FortuneUIParams
mov ecx, 0xdacba0
mov dword [esp + 0x38], ebx
call fcn.008e2b00
mov ecx, dword [ebx + 0x1f4]
push eax
call fcn.008a8090
mov eax, dword [0xdb7100]
sub eax, dword [0xdb70fc]
mov dword [esp + 0x18], edi
sar eax, 3
mov dword [esp + 0x1c], eax
call fcn.00626140
mov esi, eax
mov dword [esp + 0x2c], esi
mov byte [esi], 0
mov eax, dword [0xdb7100]
mov dword [esp + 0x80], edi
mov edi, dword [0xdb70fc]
cmp edi, eax
jbe 0x80d571
call fcn.00a2c47b
mov eax, dword [0xdb7100]
mov ebp, dword [0xdb70f0]
mov ebx, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov edi, eax
cmp dword [0xdb70fc], eax
jbe 0x80d590
call fcn.00a2c47b
test ebp, ebp
je 0x80d59c
cmp ebp, dword [0xdb70f0]
je 0x80d5a1
call fcn.00a2c47b
cmp ebx, edi
je 0x80d851
test ebp, ebp
jne 0x80d649
call fcn.00a2c47b
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x80d5c2
call fcn.00a2c47b
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x54]
push eax
push ebp
mov ecx, 0xdb6f08
call fcn.00929970
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x80d607
cmp eax, 8
jne 0x80d639
call fcn.00626140
mov edi, eax
lea ecx, [esp + 0x14]
push str._br__
push ecx
mov dword [esp + 0x1c], edi
mov byte [edi], 0
call fcn.00417090
push eax
push 0x7f8
push esi
call fcn.00a2cf04
push edi
call fcn.00626120
add esp, 0x18
cmp ebp, 0xb
ja case.default.0x80d642
jmp dword [ebp*4 + 0x80da38]
mov eax, dword [ebp]
jmp 0x80d5b8
call fcn.00626140
push str._font_color_0xffFF2929__shadow_color__0xff48250d_
lea edx, [esp + 0x18]
push edx
jmp 0x80d720
call fcn.00626140
mov edi, eax
push str._font_color_0xffFF7408__shadow_color__0xff48250d_
lea eax, [esp + 0x18]
push eax
jmp 0x80d722
call fcn.00626140
push str._font_color_0xffFFCE00__shadow_color__0xff48250d_
jmp 0x80d71b
call fcn.00626140
push str._font_color_0xff42D639__shadow_color__0xff48250d_
lea edx, [esp + 0x18]
push edx
jmp 0x80d720
call fcn.00626140
mov edi, eax
push str._font_color_0xff00B200__shadow_color__0xff48250d_
lea eax, [esp + 0x18]
push eax
jmp 0x80d722
call fcn.00626140
push str._font_color_0xff0094DE__shadow_color__0xff48250d_
jmp 0x80d71b
call fcn.00626140
push str._font_color_0xff84CE94__shadow_color__0xff48250d_
lea edx, [esp + 0x18]
push edx
jmp 0x80d720
call fcn.00626140
mov edi, eax
push str._font_color_0xff2131BD__shadow_color__0xff607C89_
lea eax, [esp + 0x18]
push eax
jmp 0x80d722
call fcn.00626140
push str._font_color_0xffC477FF__shadow_color__0xff48250d_
jmp 0x80d71b
call fcn.00626140
push str._font_color_0xffEF6BB5__shadow_color__0xff48250d_
lea edx, [esp + 0x18]
push edx
jmp 0x80d720
call fcn.00626140
mov edi, eax
push str._font_color_0xff21ADAD__shadow_color__0xff48250d_
lea eax, [esp + 0x18]
push eax
jmp 0x80d722
call fcn.00626140
push str._font_color_0xffAD8469__shadow_color__0xff351400_
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
mov dword [esp + 0x1c], edi
mov byte [edi], 0
call fcn.00417090
push eax
push 0x7f8
push esi
call fcn.00a2cf04
push edi
call fcn.00626120
add esp, 0x18
test ebx, ebx
jle 0x80d788
cmp ebp, 9
je 0x80d76f
cmp ebp, 0xa
je 0x80d76f
cmp ebp, 0xb
je 0x80d76f
call fcn.00626140
push ebx
lea edx, [esp + 0x58]
push edx
mov edi, eax
push 0xafbb58
lea eax, [esp + 0x20]
push eax
jmp 0x80d79f
call fcn.00626140
push ebx
lea ecx, [esp + 0x58]
push ecx
push str._s__d__
lea edx, [esp + 0x20]
mov edi, eax
push edx
jmp 0x80d79f
call fcn.00626140
push ebx
mov edi, eax
lea eax, [esp + 0x58]
push eax
push 0xafbb44
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edi
mov byte [edi], 0
call fcn.00417090
push eax
push 0x7f8
push esi
call fcn.00a2cf04
push edi
call fcn.00626120
mov eax, dword [esp + 0x38]
inc eax
add esp, 0x20
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jge 0x80d7e7
cmp eax, 3
je 0x80d7e7
push 0xa90218
push 0x7f8
push esi
call fcn.00a2cf04
add esp, 0xc
call fcn.00626140
mov edi, eax
lea edx, [esp + 0x14]
push str.__shadow___font_
push edx
mov dword [esp + 0x1c], edi
mov byte [edi], 0
call fcn.00417090
push eax
push 0x7f8
push esi
call fcn.00a2cf04
push edi
call fcn.00626120
mov eax, dword [esp + 0x38]
add esp, 0x18
test eax, eax
jne 0x80d84d
call fcn.00a2c47b
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x80d836
call fcn.00a2c47b
add dword [esp + 0x24], 8
mov eax, dword [0xdb7100]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x80d581
mov eax, dword [eax]
jmp 0x80d828
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x1f8]
push 0x10
push 0
push esi
call fcn.008a8090
mov edi, dword [esp + 0x34]
xor edx, edx
lea eax, [esp + 0x34]
lea ecx, [edx + 3]
cmp edi, dword [eax]
jne 0x80d877
inc edx
add eax, 0xc
sub ecx, 1
jne 0x80d872
cmp edx, 3
jne 0x80d8f9
mov eax, dword [ebx + 0x1d8]
mov cx, word [eax + 0x60]
mov edx, dword [0xce1d00]
add eax, 0x60
mov word [esp + 0x18], cx
mov ax, word [eax + 2]
add cx, 0x28
mov word [esp + 0x18], cx
mov word [esp + 0x1a], ax
add cx, word [edx + 0x560]
mov word [esp + 0x18], cx
add ax, word [edx + 0x562]
lea edx, [esp + 0x18]
push edx
push str.trick_fortune_cross
mov ecx, 0xdbba20
mov word [esp + 0x22], ax
call fcn.00984350
push 3
mov ecx, eax
call fcn.00585b40
mov ecx, eax
call fcn.00983340
push 9
push str.FortuneCardCross
call fcn.00498e80
add esp, 8
call fcn.00626140
mov edi, eax
mov dword [esp + 0x14], edi
mov byte [edi], 0
push 0xdb71f0
mov byte [esp + 0x84], 1
call fcn.00a2cedd
mov ebx, dword [eax + 8]
add esp, 4
call fcn.00626140
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov byte [ebp], 0
push ebx
push str.F_StaticHour
push str.FortuneUIParams
mov ecx, 0xdacba0
mov byte [esp + 0x8c], 2
call fcn.008e2b00
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00417090
add esp, 0xc
test eax, eax
jne 0x80d961
mov byte [edi], al
jmp 0x80d970
push eax
push 0x7f8
push edi
call fcn.00a2a28a
add esp, 0xc
push ebp
mov byte [esp + 0x84], 1
call fcn.00626120
add esp, 4
call fcn.00626140
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov byte [ebp], 0
push edi
push str.FortuneResultTag3
push str.FortuneUIParams
mov ecx, 0xdacba0
mov byte [esp + 0x8c], 3
call fcn.008e2b00
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00417090
add esp, 0xc
test eax, eax
jne 0x80d9c3
mov byte [esi], al
jmp 0x80d9d2
push eax
push 0x7f8
push esi
call fcn.00a2a28a
add esp, 0xc
push ebp
mov byte [esp + 0x84], 1
call fcn.00626120
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x1fc]
add esp, 4
push 0x10
push 0
push esi
call fcn.008a8090
push edi
mov byte [esp + 0x84], 0
call fcn.00626120
push esi
mov dword [esp + 0x88], 0xffffffff
call fcn.00626120
add esp, 8
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00a2a4ac
add esp, 0x70
ret