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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [0x610144]
push eax
mov eax, dword [edi + 4]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x54000000
push ebx
push str.SysTabControl32
push ebx
call dword [0x610308]
push ebx
push 0x11
mov dword [edi + 0x50], eax
call dword [0x61005c]
mov ecx, dword [edi + 0x50]
mov esi, dword [0x6102b4]
push eax
push 0x30
push ecx
call esi
xor eax, eax
lea edx, [esp + 0x60]
push edx
push 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x50]
push 0x1307
push eax
mov dword [esp + 0x70], 1
mov dword [esp + 0x7c], 0x641970
call esi
mov edx, dword [edi + 0x50]
lea ecx, [esp + 0x60]
push ecx
push 2
push 0x1307
push edx
mov dword [esp + 0x7c], 0x641974
call esi
mov ecx, dword [edi + 0x50]
lea eax, [esp + 0x60]
push eax
push 3
push 0x1307
push ecx
mov dword [esp + 0x7c], 0x641980
call esi
mov eax, dword [edi + 0x50]
lea edx, [esp + 0x60]
push edx
push 4
push 0x1307
push eax
mov dword [esp + 0x7c], 0x641984
call esi
mov esi, edi
call fcn.004d9860
mov esi, 0xf
push 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
push 0x641988
lea ecx, [esp + 0x3c]
call fcn.00401430
mov dword [esp + 0x13c], ebx
push 2
push 0x64198c
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401430
push ebx
mov byte [esp + 0x140], 1
mov ecx, dword [edi + 0x10]
push ebx
push ebx
mov dword [esp + 0x1c], ecx
call dword [0x61005c]
mov edx, dword [edi + 0xc]
push eax
push edx
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x48]
push eax
mov eax, dword [edx + 0xc4]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 0x10]
call eax
cmp dword [esp + 0x2c], 0x10
jb 0x5377ce
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048f06d
add esp, 4
mov dword [esp + 0x13c], 0xffffffff
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x5377f9
mov edx, dword [esp + 0x34]
push edx
call fcn.0048f06d
add esp, 4
push 0xa
push 0x641990
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401430
mov dword [esp + 0x13c], 2
push 5
push str.STAND
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401430
push ebx
mov byte [esp + 0x140], 3
mov eax, dword [edi + 0x20]
push ebx
push ebx
mov dword [esp + 0x1c], eax
call dword [0x61005c]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push ebx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0xc4]
lea ecx, [edi + 0x20]
call eax
cmp dword [esp + 0x2c], 0x10
jb 0x537887
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048f06d
add esp, 4
mov dword [esp + 0x13c], 0xffffffff
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x5378b2
mov edx, dword [esp + 0x34]
push edx
call fcn.0048f06d
add esp, 4
push 3
push 0x6419a4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401430
mov dword [esp + 0x13c], 4
push 3
push 0x6419a8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401430
push ebx
mov byte [esp + 0x140], 5
mov eax, dword [edi + 0x30]
push ebx
push ebx
mov dword [esp + 0x1c], eax
call dword [0x61005c]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push ebx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0xc4]
lea ecx, [edi + 0x30]
call eax
cmp dword [esp + 0x2c], 0x10
jb 0x537940
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048f06d
add esp, 4
mov dword [esp + 0x13c], 0xffffffff
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x53796b
mov edx, dword [esp + 0x34]
push edx
call fcn.0048f06d
add esp, 4
push 2
push 0x6419ac
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401430
mov dword [esp + 0x13c], 6
push 2
push 0x6419b0
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401430
push ebx
mov byte [esp + 0x140], 7
mov eax, dword [edi + 0x40]
push ebx
push ebx
mov dword [esp + 0x1c], eax
call dword [0x61005c]
mov ecx, dword [edi + 0xc]
push eax
push ecx
push ebx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0xc4]
lea ecx, [edi + 0x40]
call eax
cmp dword [esp + 0x2c], 0x10
jb 0x5379f9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0048f06d
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x537a19
mov edx, dword [esp + 0x34]
push edx
call fcn.0048f06d
add esp, 4
lea esi, [esp + 0xa8]
call fcn.00416a60
push str.SaveScriptSupoprt.dat
lea eax, [esp + 0x38]
push 0x681394
push eax
mov dword [esp + 0x148], 8
call fcn.0040fec0
add esp, 0xc
push eax
mov ecx, esi
push ecx
mov byte [esp + 0x144], 9
call fcn.005b9ec0
test al, al
sete byte [esp + 0x17]
mov byte [esp + 0x13c], 8
cmp dword [esp + 0x48], 0x10
jb 0x537a7b
mov edx, dword [esp + 0x34]
push edx
call fcn.0048f06d
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x537ead
mov ecx, 0x681784
lea edx, [esp + 0x110]
call fcn.00416e40
lea ecx, [esp + 0x50]
add eax, 0x64
push ecx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], edx
cmp eax, ebx
je 0x537ad9
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov eax, dword [eax + 0x1c]
push 0x2c
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00491960
add esp, 0xc
mov ecx, 0x681784
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
jne 0x537b03
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 4]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [0x610304]
mov ecx, 0x681784
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
je 0x537b3d
mov ecx, dword [edi + 4]
push 5
push ecx
jmp 0x537b42
mov edx, dword [edi + 4]
push ebx
push edx
call dword [0x610320]
mov ecx, 0x6817a0
lea edx, [esp + 0x110]
call fcn.00416e40
lea ecx, [esp + 0x58]
add eax, 0x64
push ecx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov edx, dword [eax]
mov dword [esp + 0x50], edx
cmp dword [eax + 4], ebx
je 0x537b9a
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov eax, dword [eax + 0x1c]
push 0x2c
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00491960
add esp, 0xc
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [0x610304]
mov ecx, 0x6817bc
lea edx, [esp + 0x110]
call fcn.00416e40
lea ecx, [esp + 0x58]
add eax, 0x64
push ecx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov edx, dword [eax]
mov dword [esp + 0x50], edx
cmp dword [eax + 4], ebx
je 0x537bfb
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov eax, dword [eax + 0x1c]
push 0x2c
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00491960
add esp, 0xc
mov ecx, 0x6817bc
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
jne 0x537c25
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [0x610304]
mov ecx, 0x6817bc
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
je 0x537c5f
mov eax, dword [edi + 0x14]
push 5
push eax
jmp 0x537c64
mov ecx, dword [edi + 0x14]
push ebx
push ecx
call dword [0x610320]
mov ecx, 0x6817d8
lea edx, [esp + 0x110]
call fcn.00416e40
lea edx, [esp + 0x58]
add eax, 0x64
push edx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
cmp dword [eax + 4], ebx
je 0x537cbc
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov edx, dword [eax + 0x1c]
push 0x2c
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00491960
add esp, 0xc
mov ecx, 0x6817d8
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
jne 0x537ce6
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [0x610304]
mov ecx, 0x6817d8
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
je 0x537d20
mov edx, dword [edi + 0x24]
push 5
push edx
jmp 0x537d25
mov eax, dword [edi + 0x24]
push ebx
push eax
call dword [0x610320]
mov ecx, 0x6817f4
lea edx, [esp + 0x110]
call fcn.00416e40
lea ecx, [esp + 0x58]
add eax, 0x64
push ecx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov edx, dword [eax]
mov dword [esp + 0x50], edx
cmp dword [eax + 4], ebx
je 0x537d7d
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov eax, dword [eax + 0x1c]
push 0x2c
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.00491960
add esp, 0xc
mov ecx, 0x6817f4
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
jne 0x537da7
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x34]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [0x610304]
mov ecx, 0x6817f4
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
je 0x537de1
mov eax, dword [edi + 0x34]
push 5
push eax
jmp 0x537de6
mov ecx, dword [edi + 0x34]
push ebx
push ecx
call dword [0x610320]
mov ecx, 0x681810
lea edx, [esp + 0x110]
call fcn.00416e40
lea edx, [esp + 0x58]
add eax, 0x64
push edx
mov esi, 0x68182c
mov dword [esp + 0x14], eax
call fcn.0041d6f0
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
cmp dword [eax + 4], ebx
je 0x537e3e
mov ecx, dword [esp + 0x10]
push esi
call fcn.0041a790
mov edx, dword [eax + 0x1c]
push 0x2c
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00491960
add esp, 0xc
mov ecx, 0x681810
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
jne 0x537e68
mov dword [esp + 0x84], ebx
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x7c]
push ecx
push eax
call dword [0x610304]
mov ecx, 0x681810
lea edx, [esp + 0x110]
call fcn.00416e40
push 0x681848
lea ecx, [eax + 0x24]
call fcn.004021d0
cmp dword [eax + 0x1c], ebx
je 0x537ea2
mov edx, dword [edi + 0x44]
push 5
push edx
jmp 0x537ea7
mov eax, dword [edi + 0x44]
push ebx
push eax
call dword [0x610320]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00404830
mov ecx, dword [esp + 0x134]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret