Function at 0x584590
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ce920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov esi, dword [ebp + 8]
mov dword [esp + 0xd4], edi
cmp dword [esi + 4], edi
jne 0x5847c0
mov dword [esp + 0x50], vtable.CFile.0
mov dword [esp + 0x90], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
push str.SaveScript.dat
lea eax, [esp + 0xb0]
push 0x681394
push eax
mov byte [esp + 0xe0], 1
call fcn.0040fec0
add esp, 0xc
lea esi, [esp + 0x50]
mov ebx, eax
call fcn.004f7ee0
mov esi, 0x10
cmp dword [ebx + 0x14], esi
jb 0x584642
mov ebx, dword [ebx]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [0x610138]
mov dword [esp + 0x58], eax
cmp eax, 0xffffffff
jne 0x58466a
mov dword [esp + 0x58], edi
xor bl, bl
jmp 0x5846b7
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x98], 1
call dword [0x610134]
xor ecx, ecx
add eax, edi
adc ecx, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov bl, 1
cmp dword [esp + 0xc0], esi
jb 0x5846d0
mov edx, dword [esp + 0xac]
push edx
call fcn.0048f06d
add esp, 4
test bl, bl
je 0x5847a4
lea eax, [esp + 0x10]
push eax
mov eax, 4
lea esi, [esp + 0x54]
mov dword [esp + 0x14], edi
call fcn.004f7fd0
cmp dword [esp + 0x10], 0x64
jne 0x5847a4
mov ebx, dword [0x61018c]
mov eax, dword [esp + 0x90]
cmp eax, 4
ja case.0x58470c.0
jmp dword [eax*4 + 0x584b2c]
mov ecx, dword [esp + 0x58]
push 1
push edi
push edi
push ecx
call ebx
sub eax, dword [esp + 0x80]
jmp 0x58473f
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x98]
jmp 0x58473f
mov eax, dword [esp + 0x78]
jmp 0x58473f
xor eax, eax
cmp eax, dword [esp + 0x70]
jae 0x5847a4
lea edi, [esp + 0x14]
lea eax, [esp + 0x50]
call fcn.004f88a0
lea edx, [esp + 0x30]
push edx
lea edi, [esp + 0x54]
call fcn.00417830
lea eax, [esp + 0x40]
push eax
call fcn.004178f0
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004175a0
mov ecx, dword [edi + 4]
mov edx, 0x4444443
sub edx, ecx
cmp edx, 1
jb 0x584aa6
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
xor edi, edi
jmp 0x584700
mov byte [esp + 0xd4], 0
lea esi, [esp + 0x50]
mov dword [esp + 0x50], vtable.CFile.0
call fcn.004f7ee0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
cmp ecx, eax
je 0x58483e
jmp 0x5847d2
mov esi, eax
mov ecx, 0x67e988
mov edx, 0x6a9d70
call fcn.0040f740
mov edx, dword [esi + 0xc]
mov ebx, dword [eax + 0x2c]
add eax, 0x1c
add edx, 8
cmp dword [eax + 0x14], 0x10
jb 0x5847f5
mov eax, dword [eax]
mov esi, dword [edx + 0x10]
mov edi, esi
cmp edi, esi
jae 0x5847fe
mov edi, esi
cmp esi, ebx
jb 0x584806
mov edi, ebx
cmp dword [edx + 0x14], 0x10
jb 0x58480e
mov edx, dword [edx]
push edi
mov ecx, eax
call fcn.00401700
add esp, 4
test eax, eax
jne 0x58482a
cmp esi, ebx
jb 0x58482a
cmp esi, ebx
setne al
test eax, eax
je 0x584839
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [eax + 0xc], ecx
cmp ecx, dword [eax]
jne 0x5847d0
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [esi + 0xc]
cmp eax, dword [esi]
je 0x58497e
mov ecx, dword [eax + 0x28]
mov ebx, dword [0x692eec]
sub ecx, dword [eax + 0x24]
mov edx, dword [ebx + 0x580]
cmp ecx, edx
jne 0x584886
mov ecx, dword [eax + 0x28]
sub ecx, dword [eax + 0x24]
cmp edx, ecx
jg 0x584ac6
mov edx, dword [eax + 0x24]
mov eax, dword [ebx + 0xa4]
push ecx
push edx
push eax
call fcn.00491960
add esp, 0xc
jmp 0x584ac6
mov ecx, 0x67e988
mov edx, 0x6a9d70
call fcn.0040f740
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x5848a0
mov eax, dword [eax]
push eax
call fcn.0046d410
mov esi, dword [esi + 0xc]
mov ebx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add esp, 4
cmp ebx, eax
je 0x5848ca
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.0048f350
add esp, 0xc
add edi, ebx
mov dword [esi + 0x28], edi
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
mov ecx, dword [0x692eec]
mov edi, dword [ecx + 0x580]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, eax
sub edx, ecx
cmp edx, edi
jbe 0x584907
lea ebx, [ecx + edi]
cmp ebx, eax
je 0x584935
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.0048f350
add esp, 0xc
add edi, ebx
mov dword [esi + 0x28], edi
jmp 0x584935
jae 0x584935
sub ecx, eax
add ecx, edi
lea eax, [esi + 0x24]
call fcn.00418db0
mov ecx, dword [esi + 0x28]
mov eax, edi
sub eax, ecx
add eax, dword [esi + 0x24]
je 0x58492d
push eax
push 0
push ecx
call fcn.00493600
add esp, 0xc
mov eax, dword [esi + 0x24]
add eax, edi
mov dword [esi + 0x28], eax
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
cmp ecx, edx
je 0x584ac4
mov eax, edx
cmp edx, edx
je 0x584976
nop
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov dword [ecx + 8], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0xc], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x10], edi
add eax, 0x14
add ecx, 0x14
cmp eax, edx
jne 0x584950
mov dword [esi + 0x38], ecx
jmp 0x584ac4
mov ecx, 0x67e988
mov edx, 0x6a9d70
call fcn.0040f740
push 0xffffffffffffffff
add eax, 0x1c
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00401c50
mov esi, dword [esp + 0x34]
mov ecx, dword [0x692eec]
mov edx, dword [esp + 0x30]
mov edi, dword [ecx + 0x580]
mov eax, esi
sub eax, edx
cmp eax, edi
jbe 0x5849d9
add edi, edx
cmp edi, esi
je 0x584a5e
push 0
push esi
push edi
call fcn.0048f350
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x34], edi
jmp 0x584a58
jae 0x584a5e
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x10], eax
add ecx, edi
or eax, 0xffffffff
sub eax, ecx
cmp eax, dword [esp + 0x10]
jae 0x5849fe
push str.vector_T__too_long
call fcn.0047cca5
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add ebx, ecx
sub eax, edx
cmp ebx, eax
jbe 0x584a39
mov ecx, eax
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
cmp edx, eax
jae 0x584a1f
xor eax, eax
jmp 0x584a21
add eax, ecx
cmp eax, ebx
jae 0x584a27
mov eax, ebx
push eax
lea esi, [esp + 0x34]
call fcn.00418d40
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, edx
sub eax, esi
add eax, edi
je 0x584a51
push eax
push 0
push esi
call fcn.00493600
mov edx, dword [esp + 0x3c]
add esp, 0xc
lea eax, [edx + edi]
mov dword [esp + 0x34], eax
mov ecx, dword [0x692eec]
mov eax, dword [ecx + 0xa4]
cmp eax, dword [ecx + 0xa8]
je 0x584a83
mov eax, dword [ecx + 0x580]
mov ecx, dword [ecx + 0xa4]
push eax
push ecx
push edx
call fcn.00491960
add esp, 0xc
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
push esi
call fcn.004175a0
mov ecx, dword [edi + 4]
mov edx, 0x4444443
sub edx, ecx
cmp edx, 1
jae 0x584ab0
push str.list_T__too_long
call fcn.0047cca5
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [edi + 0xc], eax
xor edi, edi
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x584ad7
push eax
call fcn.0048f06d
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
cmp eax, edi
je 0x584af4
push eax
call fcn.0048f06d
add esp, 4
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jb 0x584b14
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0048f06d
add esp, 4
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4