Function at 0x5eda30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748f96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x30]
dec eax
je 0x5eda7e
dec eax
je 0x5ede95
dec eax
jne 0x5eda87
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 1
mov ecx, esi
call fcn.005ee530
mov al, byte [ebp + 0x20]
mov byte [esi + 0x5c], 0
test al, al
je 0x5edaa3
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
mov byte [esi + 4], 1
call fcn.005f09f0
jmp 0x5edaae
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.005ea640
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x5edafb
mov eax, dword [esi + 0x78]
mov edi, eax
mov dword [ebp + 0x20], eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
push ebx
push str.invalid_magic_type:__d__user__s___d_
call fcn.0044bac0
add esp, 0x10
mov ecx, esi
push 1
call fcn.005ee530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov bl, byte [ebp + 0x18]
test bl, bl
je 0x5edb2d
mov edx, dword [edi]
push 0x7e
mov ecx, edi
call dword [edx + 0x14]
test bl, al
jne 0x5edb2d
push 1
mov ecx, esi
call fcn.005ee530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
push edi
mov ecx, esi
mov byte [ebp + 0x23], 0
mov dword [ebp - 4], 0
call fcn.005ee7f0
mov ebx, dword [ebp + 0x14]
jmp 0x5edbaf
test al, al
mov dword [ebp - 4], 0xffffffff
jne 0x5eddf4
mov edx, dword [edi]
push 0x66
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 0xc
jne 0x5edbfa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0069fce0
push 1
mov ecx, esi
call fcn.005ee530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [edi]
push 0x66
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 9
jne 0x5edce2
mov ecx, dword [esi + 0x78]
mov edx, dword [ebp + 0x10]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0xa0]
push edi
mov ecx, esi
mov ebx, eax
call fcn.005f2dd0
cmp ebx, eax
jle 0x5edcb2
push 0x5b6
push 0x7c0d90
push str.m_pOwner__GetDistance_x__y____GetMgcAtkDistance_pData_
push str.IF_NOT
push 0x793720
call fcn.00401080
mov eax, dword [esi + 0x78]
add esp, 0x14
mov ecx, dword [eax]
push 0x7b7b70
push eax
call dword [ecx + 0x1b4]
mov ecx, dword [esi + 0x78]
add esp, 8
lea eax, [ebp + 0x20]
mov dword [ebp + 0x20], 0
mov edx, dword [ecx]
push eax
push 0x100001
call dword [edx + 0x114]
test al, al
je 0x5edc9d
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x7fd5e4]
push str.JUMPATTACK__
mov ax, word [eax + 0x7ea]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
mov ecx, esi
mov dword [esi + 0x10], edi
call fcn.0069f1d0
push 1
mov ecx, esi
call fcn.005ee530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [edi]
push 0x66
mov ecx, edi
call dword [eax + 0x14]
cmp eax, 0x45
je 0x5edd3a
mov edx, dword [edi]
push 0x66
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 0x47
je 0x5edd3a
mov eax, dword [edi]
push 0x66
mov ecx, edi
call dword [eax + 0x14]
cmp eax, 0x48
je 0x5edd3a
mov edx, dword [edi]
push 0x66
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 0x49
je 0x5edd3a
mov eax, dword [edi]
push 0x66
mov ecx, edi
call dword [eax + 0x14]
cmp eax, 0x4b
je 0x5edd3a
mov edx, dword [edi]
push 0x66
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 0x4c
jne 0x5eddd6
lea ecx, [ebp - 0x450]
call fcn.0061b240
mov eax, dword [esi + 0x78]
mov dword [ebp - 4], 2
mov ebx, eax
mov dword [ebp + 0x20], eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x24]
mov edx, dword [edi]
push eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push 3
mov ecx, edi
call dword [edx + 0x14]
push eax
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
push eax
lea ecx, [ebp - 0x450]
call fcn.0061b550
test eax, eax
jne 0x5eddb0
push 0x5ca
push 0x7c0d90
push str.msg.Create_m_pOwner__GetID____pData__GetInt_MAGICDATA_TYPE___pData__GetInt_MAGICDATA_LEVEL___idTarget__0__m_pOwner__GetDir___
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5eddc4
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0x450]
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x1ac]
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.0061b2d0
push 1
mov ecx, esi
call fcn.005ee530
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov edx, dword [edi]
push 0x69
mov ecx, edi
call dword [edx + 0x14]
test eax, eax
je 0x5ede11
mov dword [esi + 0x14], 0
mov byte [esi + 0x24], 1
mov eax, dword [edi]
push 0x66
mov ecx, edi
call dword [eax + 0x14]
cmp eax, 0xc
jne 0x5ede29
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], 1
mov eax, dword [ecx]
push 0x70
call dword [eax + 0x14]
mov dword [esi + 0x34], eax
call fcn.007028fe
mov dword [esi + 0x38], eax
mov ecx, dword [0x7fd5e0]
mov eax, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [ebp - 0x20], eax
mov edx, dword [ecx]
call dword [edx + 0xa4]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
jne 0x5edeaa
push 0x5ea
push 0x7c0d90
push str.pBattleMap
push str.CHECKF
push 0x793720
call fcn.00401080
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebx + 0x24]
push 4
mov eax, dword [ecx]
call dword [eax + 4]
shr eax, 0xf
and al, 1
mov byte [ebp + 0x23], al
jne 0x5ee0f9
mov ecx, dword [esi + 0x78]
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x20], ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [ebp + 0x20]
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
push 0x2000
mov ecx, ebx
call fcn.00485b00
test al, al
jne 0x5ee0f9
mov ecx, dword [ebx + 0x24]
push 4
mov edx, dword [ecx]
call dword [edx + 4]
shr eax, 9
and al, 1
mov byte [ebp + 0x23], al
jne 0x5ee0f9
mov ecx, dword [esi + 0x10]
push 0x6d
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x10]
push 0x83
mov dword [ebp + 0x20], eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
push 0x6e
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x10]
push 0x99
mov dword [ebp - 0x30], eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x78]
mov dword [ebp - 0x18], eax
push 0x46
mov eax, dword [ecx]
call dword [eax + 0x14c]
mov ebx, eax
test ebx, ebx
je 0x5edfb1
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x20]
push eax
call fcn.005d1cc0
add esp, 0xc
mov dword [ebp + 0x20], eax
test eax, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp + 0x20]
jg 0x5edf7d
lea eax, [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebx]
mov dword [ebp + 0x20], ecx
push 0
mov ecx, ebx
call dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.005d1cc0
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
jg 0x5edfac
lea eax, [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x78]
push 0xb7
mov edx, dword [ecx]
call dword [edx + 0x14c]
mov ebx, eax
test ebx, ebx
je 0x5ee015
mov eax, dword [ebx]
push 0x64
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x20]
add eax, 0x64
push eax
push ecx
call dword [sym.imp.kernel32.dll_MulDiv]
mov edx, dword [ebx]
push 0x64
mov ecx, ebx
mov dword [ebp + 0x20], eax
call dword [edx + 0xc]
add eax, 0x64
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
mov edx, dword [ebx]
push 0x64
mov ecx, ebx
mov dword [ebp - 0x14], eax
call dword [edx + 0xc]
add eax, 0x64
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x10]
push 0x6d
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jle 0x5ee03a
mov eax, dword [ebp + 0x20]
mov ecx, dword [esi + 0x78]
neg eax
mov ebx, dword [ecx]
push 1
cdq
push edx
push eax
push 2
call dword [ebx + 0x138]
mov ecx, dword [esi + 0x10]
push 0x83
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jle 0x5ee062
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x78]
neg eax
mov ebx, dword [ecx]
push 1
cdq
push edx
push eax
push 9
call dword [ebx + 0x138]
mov edx, dword [edi]
push 0x85
mov ecx, edi
call dword [edx + 0x14]
test eax, eax
je 0x5ee0ac
mov eax, dword [edi]
push 0x88
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jle 0x5ee0ac
mov ecx, dword [esi + 0x78]
mov edx, dword [edi]
push 1
push 0x88
mov ebx, dword [ecx]
mov ecx, edi
call dword [edx + 0x14]
push eax
mov eax, dword [edi]
push 0x85
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esi + 0x78]
push eax
call dword [ebx + 0x248]
mov ecx, dword [esi + 0x10]
push 0x6e
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jle 0x5ee0d1
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x78]
neg eax
mov ebx, dword [ecx]
push 1
cdq
push edx
push eax
push 0x23
call dword [ebx + 0x138]
mov ecx, dword [esi + 0x10]
push 0x99
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
jle 0x5ee0f9
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x78]
neg eax
mov ebx, dword [ecx]
push 1
cdq
push edx
push eax
push 0x2c
call dword [ebx + 0x138]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x5ee143
mov edx, dword [edi]
push 0x86
mov ecx, edi
call dword [edx + 0x14]
mov edx, eax
mov eax, dword [edi]
push 2
mov ecx, edi
mov dword [ebp + 0x20], edx
call dword [eax + 0x14]
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
jne 0x5ee143
mov edx, dword [ebx]
lea eax, [ebp + 0x20]
push eax
push 0x100001
mov ecx, ebx
mov dword [ebp + 0x20], 0
call dword [edx + 0x114]
test al, al
je 0x5ee143
mov byte [esi + 0x24], 0
mov ecx, dword [esi + 0x10]
push 2
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp eax, 0x2710
jl 0x5ee15f
cmp eax, 0x2810
jl 0x5ee2c8
lea ecx, [ebp - 0x450]
call fcn.00619fc0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], 3
test eax, eax
mov dword [ebp + 0x20], 0
je 0x5ee23d
mov ecx, dword [esi + 0x78]
lea edx, [ebp + 0x20]
push edx
push 0x100002
mov eax, dword [ecx]
call dword [eax + 0x114]
test al, al
je 0x5ee23d
mov eax, dword [ebp + 0x20]
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0x120]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x5ee2b6
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x78]
mov edi, eax
push 3
mov ecx, edi
mov dword [ebp - 0x20], eax
mov edx, dword [edi]
call dword [edx + 0x14]
push eax
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
push eax
push 0x15
lea ecx, [ebp - 0x450]
call fcn.0061a200
test eax, eax
jne 0x5ee223
push 0x624
push 0x7c0d90
push str.msg.Create_INTERACT_MAGICATTACK__m_pOwner__GetID____idTarget__x__y__m_pMagic__GetInt_MAGICDATA_TYPE___m_pMagic__GetInt_MAGICDATA_LEVEL__
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5ee2b6
mov eax, dword [ebp + 0x1c]
push 1
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
lea eax, [ebp - 0x450]
push eax
call dword [edx + 0x1ac]
jmp 0x5ee2b6
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x78]
mov edi, ecx
push 3
mov dword [ebp - 0x20], ecx
mov edx, dword [edi]
call dword [edx + 0x14]
push eax
mov eax, dword [edi]
push 2
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 4]
push eax
push 0x15
lea ecx, [ebp - 0x450]
call fcn.0061a200
test eax, eax
jne 0x5ee2a2
push 0x62a
push 0x7c0d90
push str.msg.Create_INTERACT_MAGICATTACK__m_pOwner__GetID____idTarget__x__y__m_pMagic__GetInt_MAGICDATA_TYPE___m_pMagic__GetInt_MAGICDATA_LEVEL__
push str.IF_OK
push 0x793720
call fcn.00401080
add esp, 0x14
jmp 0x5ee2b6
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0x450]
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 0x1ac]
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.0061a050
mov ecx, dword [esi + 0x10]
push 0x6d
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
je 0x5ee374
mov ebx, dword [ebp - 0x28]
push 4
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
call dword [edx + 4]
shr eax, 0xf
and al, 1
mov byte [ebp + 0x23], al
jne 0x5ee358
mov eax, dword [esi + 0x78]
mov edi, eax
mov dword [ebp + 0x20], eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x20]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push eax
push 0x2000
mov ecx, ebx
call fcn.00485b00
test al, al
jne 0x5ee358
mov ecx, dword [ebx + 0x24]
push 4
mov edx, dword [ecx]
call dword [edx + 4]
shr eax, 9
and al, 1
mov byte [ebp + 0x23], al
jne 0x5ee358
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x78]
push 0x8a
mov edx, dword [ecx]
mov edi, dword [eax]
call dword [edx + 0x14]
push eax
mov ecx, esi
call fcn.005f1600
mov ecx, dword [esi + 0x78]
test eax, eax
setne al
push eax
push 0
call dword [edi + 0x250]
push 0
push 0xa
call fcn.0040ac50
add esp, 8
cmp eax, 7
jne 0x5ee374
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
call dword [edx + 0x254]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.005eb580
jmp 0x5ee3ed
mov ecx, dword [esi + 0x10]
push 0x70
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jg 0x5ee4fc
xor edi, edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x30], 2
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp eax, 1
mov dword [esi + 0x44], eax
jge 0x5ee42a
mov eax, 1
mov ecx, esi
mov dword [esi + 0x44], eax
mov byte [ebp + 0x23], 0
mov dword [ebp - 4], 6
call fcn.00696ca0
cmp eax, edi
setne al
xor edi, edi
jmp 0x5ee4a2
test al, al
mov dword [ebp - 4], 0xffffffff
je 0x5ee4e7
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov dword [esi + 0x3c], eax
call fcn.007028fe
mov dword [esi + 0x40], eax
mov esi, dword [esi + 0x78]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
mov edx, dword [esi]
push eax
push 0x100001
mov ecx, esi
call dword [edx + 0x114]
test al, al
je 0x5ee4fc
mov ecx, dword [ebp + 0x10]
call fcn.004748d0
jmp 0x5ee4fc
push edi
mov ecx, esi
call fcn.005f1ea0
mov ecx, esi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.005f1850
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c