Function at 0x421940
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2db1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
push str._Resources
call fcn.00419cf0
mov ecx, dword [ebx]
push str._Matrix
mov edi, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x3ff00000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x3ff00000
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.00419d10
push eax
lea ecx, [esp + 0x3c]
call fcn.00421e90
mov esi, dword [ebp + 8]
test esi, esi
je 0x4219fe
lea eax, [esi + 0x48]
lea ecx, [esp + 0x38]
push eax
call fcn.00422300
lea ecx, [esp + 0xac]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3ff00000
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x3ff00000
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.004a4e94
lea ecx, [esp + 0xd8]
mov dword [esp + 0x190], 0
call fcn.004a4e34
lea ecx, [esp + 0x170]
mov byte [esp + 0x190], 1
call fcn.004a4e94
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push edi
push ecx
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1a4], 2
call fcn.0041d9e0
test esi, esi
je 0x421afe
mov ecx, dword [esp + 0xc0]
push esi
call fcn.0041bc70
mov eax, dword [esp + 0xc0]
mov ecx, 0xc
lea esi, [esp + 0x38]
lea edi, [eax + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x60]
push edx
mov dword [esp + 0x18], 0
call fcn.0041a590
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x421b4d
lea ecx, [esp + 0x68]
mov dword [esp + 0x190], 0xffffffff
call fcn.0041d940
xor eax, eax
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x70]
call fcn.0041da90
mov edx, dword [esp + 0x10]
push edx
call fcn.004a6253
mov esi, dword [ebp + 0x10]
add esp, 4
test esi, esi
je 0x421bfb
fld qword [esp + 0x140]
fmul qword [0x4da0f8]
mov eax, dword [esp + 0x13c]
sub esp, 8
mov dword [esi], eax
fstp qword [esp]
call fcn.004223b0
fld qword [esp + 0x158]
fmul qword [0x4da0f8]
mov dword [esi + 0xc], eax
fstp qword [esp]
call fcn.004223b0
fld qword [esp + 0x160]
fmul qword [0x4da0f8]
mov dword [esi + 0x10], eax
fstp qword [esp]
call fcn.004223b0
fld qword [esp + 0x168]
fmul qword [0x4da0f8]
mov dword [esi + 0x1c], eax
fstp qword [esp]
call fcn.004223b0
fld qword [esp + 0x170]
fmul qword [0x4da0f8]
mov dword [esi + 0x18], eax
fstp qword [esp]
call fcn.004223b0
add esp, 8
mov dword [esi + 0x14], eax
test edi, edi
je 0x421c09
push edi
lea ecx, [esp + 0x3c]
call fcn.00422300
mov ecx, dword [ebx]
push str._BBox
call fcn.00419d10
push eax
lea ecx, [esp + 0x18]
call fcn.004226a0
mov eax, dword [esp + 0x28]
lea ecx, [ebx + 0x88]
lea edx, [ebx + 0x68]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00421fb0
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0x90]
lea edx, [ebx + 0x70]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00421fb0
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0x98]
lea edx, [ebx + 0x78]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00421fb0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [ebx + 0xa0]
add ebx, 0x80
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00421fb0
lea ecx, [esp + 0x68]
mov dword [esp + 0x190], 0xffffffff
call fcn.0041d940
mov ecx, dword [esp + 0x188]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc