Function at 0x440830
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b76ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push edi
mov edi, dword [esp + 0x178]
xor ebx, ebx
push edi
lea eax, [esp + 0x30]
push eax
mov ecx, str.Chip_3D.arc
mov dword [esi], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
call fcn.00465bf0
mov dword [esp + 0x16c], ebx
cmp dword [esp + 0x34], ebx
jne 0x440ce9
cmp dword [esp + 0x38], ebx
jne 0x440ce9
movzx ecx, word [esp + 0x40]
mov ebp, dword [esp + 0x17c]
cmp ebp, ecx
jl 0x4408b2
push edi
mov eax, esi
mov dword [esi], 2
call fcn.004417d0
lea edx, [esp + 0x2c]
push edx
jmp 0x440cfc
lea eax, [esp + 0x2c]
push eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x24]
mov eax, ebp
call fcn.00465db0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esi + 4], ecx
and ecx, 0x800000ff
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
jns 0x4408f5
dec ecx
or ecx, 0xffffff00
inc ecx
lea ecx, [eax + 1]
jne 0x4408fc
mov ecx, eax
mov eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and edi, 0x800000ff
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jns 0x440920
dec edi
or edi, 0xffffff00
inc edi
je 0x440923
inc eax
mov dword [esi + 0x14], eax
imul eax, ecx
xor ecx, ecx
mov dword [esi + 0xc], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00483cf2
mov dword [esi + 0x18], eax
add esp, 4
xor eax, eax
cmp dword [esi + 0xc], ebx
jle 0x44095c
nop
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 0xc]
jl 0x440950
cmp dword [esi + 0x14], ebx
mov dword [esp + 0x18], ebx
jle 0x440b7d
mov dword [esp + 0x20], ebx
lea ecx, [ecx]
cmp dword [esi + 0x10], ebx
jle 0x440b63
xor ebp, ebp
mov edi, dword [esi + 0x10]
imul edi, dword [esp + 0x18]
xor edx, edx
add edi, ebx
cmp dword [0x912434], edx
mov eax, 0x100
setne dl
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x178]
lea ecx, [esp + 0x20]
lea edx, [edx*8 + 2]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call fcn.00468ced
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x4409d8
cmp eax, 0xa
jne 0x440bfe
mov eax, 0x100
cmp dword [esp + 0x14], eax
jne 0x440c99
cmp dword [esp + 0x1c], eax
jne 0x440c99
mov ecx, dword [esi + 0x18]
push 0
add edi, edi
add edi, edi
add ecx, edi
push ecx
push 0
mov dword [esp + 0x34], eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x188]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00469056
test eax, eax
jne 0x440c79
push 0x64
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.00487bc0
mov edx, dword [esi + 0x18]
add esp, 0xc
mov dword [esp + 0xf4], 0x64
mov dword [esp + 0x144], 0
mov eax, dword [edi + edx]
mov ecx, dword [eax]
lea edx, [esp + 0xf4]
push edx
push 0x1000400
push 0
push 0
push 0
push eax
mov eax, dword [ecx + 0x14]
call eax
push 0x7c
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.00487bc0
mov edx, dword [esi + 0x18]
add esp, 0xc
push 0
mov dword [esp + 0x78], 0x7c
mov eax, dword [edi + edx]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x7c]
push edx
push 0
push eax
mov eax, dword [ecx + 0x64]
call eax
test eax, eax
jne 0x440c8f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x58], eax
add eax, 0x100
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xfffffff0
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xd0]
lea ecx, [ebp + 0x100]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xcc]
add eax, 0x20
push eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xa0]
push eax
push ecx
mov ecx, dword [esp + 0x18c]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x78]
mov dword [esp + 0x68], ebp
call fcn.00465df0
mov eax, dword [esi + 0x18]
mov eax, dword [edi + eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push 0
push eax
call edx
inc ebx
add ebp, 0x100
cmp ebx, dword [esi + 0x10]
jl 0x44097b
mov ebp, dword [esp + 0x17c]
xor ebx, ebx
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x100
inc eax
cmp eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
jl 0x440970
mov edi, dword [esp + 0x44]
mov dword [esi + 0x1c], ebx
cmp bp, word [esp + 0x40]
jae 0x440ba1
movzx eax, bp
lea edx, [eax + eax*2]
mov ecx, dword [edi + edx*8 + 8]
lea eax, [edi + edx*8]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x28], edx
mov eax, str.Chip_3D.arc
lea edx, [esi + 0x30]
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x20], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x440bb1
mov eax, dword [esp + 0x178]
lea edx, [esi + 0x134]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x440bd0
mov dword [esp + 0x16c], 3
cmp edi, ebx
je 0x440bf6
push edi
call fcn.0048376d
add esp, 4
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
jmp 0x440c65
mov dword [esi], 3
mov ecx, dword [0x4f2ac4]
mov eax, dword [0x9131c8]
push ecx
push str.D3D_Error_Chip_
push 0
push eax
mov edi, eax
call fcn.00463a00
add esp, 0x10
call fcn.00455380
push 0
push 0
push 0x10
mov ebx, 1
push edi
mov dword [0x9131b4], ebx
call dword [0x4b9280]
mov dword [esp + 0x16c], ebx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x440c5f
push eax
call fcn.0048376d
add esp, 4
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x440d0c
push eax
call fcn.004854f7
add esp, 4
jmp 0x440d0c
push 0
mov eax, esi
mov dword [esi], 1
call fcn.004417d0
lea edx, [esp + 0x2c]
push edx
jmp 0x440cfc
mov dword [esi], 5
push 0
jmp 0x440cf0
mov dword [esi], 4
mov ecx, dword [0x4f2ac8]
mov eax, dword [0x9131c8]
push ecx
push str.D3D_Error_Chip_
push 0
push eax
mov edi, eax
call fcn.00463a00
add esp, 0x10
call fcn.00455380
push 0
push 0
push 0x10
push edi
mov dword [0x9131b4], 1
call dword [0x4b9280]
mov dword [esp + 0x16c], 2
jmp 0x440c46
mov dword [esi], 2
push edi
mov eax, esi
call fcn.004417d0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x170], 0xffffffff
call fcn.00465d40
mov ecx, dword [esp + 0x164]
pop edi
pop ebp
mov eax, esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 0xc