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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc288
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
movsx eax, word [esi + 0x97a]
mov edx, dword [0x4f78e8]
mov dword [ebx + 0xc], eax
movsx ecx, word [esi + 0x97c]
sub edx, eax
mov eax, dword [0x4f78ec]
sub eax, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov ecx, dword [eax + 0xbc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
add eax, 0x64
push eax
call fcn.00426c90
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x4efb90]
push 0
push 0x8e
push 0xbc
mov edi, eax
mov eax, dword [ebx + 0xc]
push edx
push eax
mov dword [esp + 0x30], edi
call fcn.0047d290
movsx edx, word [edi + 0x58]
lea ecx, [edi + 0x38]
mov eax, 0x86
sub eax, edx
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
lea eax, [eax + edx + 5]
push ecx
movsx ecx, word [ecx + 0x1e]
push eax
mov eax, 0xb4
sub eax, ecx
mov ecx, dword [0x4efb90]
cdq
sub eax, edx
mov edx, dword [ebx + 0xc]
sar eax, 1
lea eax, [eax + edx + 4]
push eax
call fcn.0047d6a0
mov eax, dword [esi + 0xa34]
test eax, eax
je 0x4573a2
cmp byte [eax + 0x14], 0
movsx ecx, word [esi + 0x97c]
je 0x4573a2
mov edx, dword [eax + 4]
test edx, edx
je 0x45737e
push edx
movsx edx, word [eax + 0xe]
add edx, ecx
movsx ecx, word [eax + 0xc]
movsx eax, word [esi + 0x97a]
add ecx, eax
push edx
push ecx
mov ecx, dword [0x4efb90]
call fcn.0047d6a0
jmp 0x4573a2
mov edx, dword [eax + 8]
push edx
movsx edx, word [eax + 0xe]
add edx, ecx
movsx ecx, word [eax + 0xc]
movsx eax, word [esi + 0x97a]
add ecx, eax
push edx
push ecx
mov ecx, dword [0x4efb90]
call fcn.0047bee0
mov eax, dword [esi + 0xa38]
test eax, eax
je 0x457407
cmp byte [eax + 0x14], 0
movsx ecx, word [esi + 0x97c]
je 0x457407
mov edx, dword [eax + 4]
test edx, edx
je 0x4573e3
push edx
movsx edx, word [eax + 0xe]
add edx, ecx
movsx ecx, word [eax + 0xc]
movsx eax, word [esi + 0x97a]
add ecx, eax
push edx
push ecx
mov ecx, dword [0x4efb90]
call fcn.0047d6a0
jmp 0x457407
mov edx, dword [eax + 8]
push edx
movsx edx, word [eax + 0xe]
add edx, ecx
movsx ecx, word [eax + 0xc]
movsx eax, word [esi + 0x97a]
add ecx, eax
push edx
push ecx
mov ecx, dword [0x4efb90]
call fcn.0047bee0
cmp dword [esp + 0x14], 1
jne 0x45746c
mov eax, dword [esi + 0xa48]
test eax, eax
je 0x45746c
cmp byte [eax + 0x14], 0
movsx ecx, word [esi + 0x97c]
movsx edx, word [esi + 0x97a]
je 0x45746c
mov esi, dword [eax + 4]
test esi, esi
je 0x45744f
push esi
movsx esi, word [eax + 0xe]
movsx eax, word [eax + 0xc]
add esi, ecx
mov ecx, dword [0x4efb90]
push esi
add eax, edx
push eax
call fcn.0047d6a0
jmp 0x45746c
mov esi, dword [eax + 8]
push esi
movsx esi, word [eax + 0xe]
add esi, ecx
movsx ecx, word [eax + 0xc]
add ecx, edx
push esi
push ecx
mov ecx, dword [0x4efb90]
call fcn.0047bee0
movsx edx, word [edi + 0x56]
mov ecx, dword [ebx + 0xc]
mov eax, 0xb4
sub eax, edx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx + 4]
movsx ecx, word [edi + 0x58]
mov eax, 0x86
sub eax, ecx
mov dword [esp + 0x18], edx
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
test byte [0x689994], 1
lea eax, [eax + edx + 5]
mov dword [esp + 0x14], eax
jne 0x45751b
mov al, byte [0x4efb84]
or dword [0x689994], 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x320
add ecx, 0x320
movzx edx, al
neg edx
sbb edx, edx
mov dword [0x68925c], ecx
and edx, 0x200
add edx, 0x219
movzx ecx, al
neg ecx
sbb ecx, ecx
mov dword [0x689260], edx
and ecx, 0x6720
movzx edx, al
add ecx, 0x6720
neg edx
sbb edx, edx
and edx, 0x6400
add edx, 0x6400
mov dword [0x689264], ecx
mov dword [0x689268], edx
mov eax, dword [edi + 0x30]
mov esi, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jmp 0x457530
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x18]
test eax, eax
je 0x457542
cmp eax, ecx
je 0x45754b
call fcn.0048dc57
mov eax, dword [esp + 0x20]
cmp esi, dword [esp + 0x2c]
je 0x457653
test eax, eax
jne 0x4575d3
call fcn.0048dc57
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x45756a
call fcn.0048dc57
mov eax, dword [esi + 0x14]
sub eax, dword [edi]
movsx edx, word [edi + 0x56]
imul eax, edx
cdq
idiv dword [edi + 0x10]
movsx edx, word [edi + 0x58]
mov ecx, eax
mov eax, dword [esi + 0x18]
sub eax, dword [edi + 4]
imul eax, edx
cdq
idiv dword [edi + 0x14]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4575d7
mov edx, dword [edx*4 + 0x68925c]
push edx
mov edx, dword [esp + 0x18]
push 2
lea eax, [eax + edx - 2]
mov edx, dword [esp + 0x20]
push 2
push eax
lea eax, [ecx + edx - 2]
mov ecx, dword [0x4efb90]
push eax
call fcn.0047d290
lea esi, [esp + 0x20]
call fcn.00426820
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x457530
mov eax, dword [eax]
jmp 0x457560
mov edx, dword [esp + 0x14]
lea esi, [eax + edx - 2]
mov eax, dword [esp + 0x18]
lea edi, [ecx + eax - 2]
movzx ecx, byte [0x4efb84]
neg ecx
sbb ecx, ecx
and ecx, 0x320
add ecx, 0x320
push ecx
mov ecx, dword [0x4efb90]
push 4
push 4
push esi
push edi
call fcn.0047d290
movzx edx, byte [0x4efb84]
mov ecx, dword [0x4efb90]
neg edx
sbb edx, edx
and edx, 0x1a0
add edx, 0x180
push edx
push 4
push 4
push esi
push edi
call fcn.0047a560
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x20]
call fcn.00426820
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x457530
mov eax, dword [0x6391d8]
mov ecx, dword [0x4efb90]
mov esi, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00489780
push 0
push 0xc8c8c8
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0
call fcn.00483ce0
mov ecx, dword [esi]
call fcn.00456820
push eax
mov edi, 0x4dfec0
call fcn.004021e0
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
add edx, 0x7b
push edx
add eax, 0x3c
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004871a0
add esp, 0x14
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0xffffffff
call fcn.004897b0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4