Function at 0x480d60
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddefb
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x511d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x294], ecx
lea eax, [ecx + 0x30]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x290], eax
lea eax, [ecx + 0x34]
mov dword [ebp - 0x280], eax
lea eax, [ecx + 0x38]
mov dword [ebp - 0x270], eax
lea eax, [ecx + 0x3c]
mov dword [ebp - 0x260], eax
lea eax, [ecx + 0x40]
mov dword [ebp - 0x250], eax
lea eax, [ecx + 0x48]
mov dword [ebp - 0x240], eax
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x230], eax
lea eax, [ecx + 0x50]
mov dword [ebp - 0x220], eax
lea eax, [ecx + 0x54]
mov dword [ebp - 0x210], eax
lea eax, [ecx + 0x58]
mov dword [ebp - 0x200], eax
lea eax, [ecx + 0x5c]
mov dword [ebp - 0x1f0], eax
lea eax, [ecx + 0x60]
mov dword [ebp - 0x1e0], eax
lea eax, [ecx + 0x64]
mov dword [ebp - 0x1d0], eax
lea eax, [ecx + 0x70]
mov dword [ebp - 0x1c0], eax
lea eax, [ecx + 0x74]
mov dword [ebp - 0x1b0], eax
lea eax, [ecx + 0x78]
mov dword [ebp - 0x28c], str.Lifetime
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x27c], str.ParticleLifeMin
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x26c], str.ParticleLifeMax
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x25c], str.Direction
mov byte [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], str.Spread
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], str.SpeedMin
mov byte [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], str.SpeedMax
mov byte [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], str.GravityMin
mov byte [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x20c], str.GravityMax
mov byte [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x1fc], str.RadialAccelMin
mov byte [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1ec], str.RadialAccelMax
mov byte [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1dc], str.TangentialAccelMin
mov byte [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], str.TangentialAccelMax
mov byte [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], str.InitialDistMin
mov byte [ebp - 0x1b8], 1
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1ac], str.InitialDistMax
mov byte [ebp - 0x1a8], 1
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], 0x4e73b0
mov byte [ebp - 0x198], 1
mov dword [ebp - 0x194], 0
lea eax, [ecx + 0x7c]
mov dword [ebp - 0x18c], str.FadeOut
mov dword [ebp - 0x190], eax
xorps xmm0, xmm0
lea eax, [ecx + 0x68]
mov byte [ebp - 0x188], 1
mov dword [ebp - 0x180], eax
lea eax, [ecx + 0x6c]
mov dword [ebp - 0x170], eax
lea eax, [ecx + 0x80]
mov dword [ebp - 0x160], eax
lea eax, [ecx + 0x84]
mov dword [ebp - 0x150], eax
lea eax, [ecx + 0x88]
mov dword [ebp - 0x140], eax
lea eax, [ecx + 0x8c]
mov dword [ebp - 0x130], eax
lea eax, [ecx + 0x90]
mov dword [ebp - 0x120], eax
lea eax, [ecx + 0x94]
mov dword [ebp - 0x110], eax
lea eax, [ecx + 0xb8]
mov dword [ebp - 0x100], eax
lea eax, [ecx + 0xbc]
mov dword [ebp - 0xf0], eax
lea eax, [ecx + 0xc8]
mov dword [ebp - 0xe0], eax
lea eax, [ecx + 0x98]
mov dword [ebp - 0xd0], eax
lea eax, [ecx + 0x9c]
mov dword [ebp - 0xc0], eax
lea eax, [ecx + 0xa0]
mov dword [ebp - 0xb0], eax
lea eax, [ecx + 0xa4]
mov dword [ebp - 0xa0], eax
lea eax, [ecx + 0xa8]
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x17c], str.OriginXAmplitude
mov byte [ebp - 0x178], 1
mov dword [ebp - 0x174], 2
mov dword [ebp - 0x16c], str.OriginYAmplitude
mov byte [ebp - 0x168], 1
mov dword [ebp - 0x164], 2
mov dword [ebp - 0x15c], str.SizeStart
mov byte [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x14c], str.SizeEnd
mov byte [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], str.SizeVar
mov byte [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], str.SpinStart
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x11c], str.SpinEnd
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], str.SpinVar
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xfc], str.ColorVar
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xec], str.AlphaVar
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], str.dtDivider
mov byte [ebp - 0xd8], 1
mov dword [ebp - 0xd4], 1
mov dword [ebp - 0xcc], str.ColorStartR
movq qword [ebp - 0xc8], xmm0
mov dword [ebp - 0xbc], str.ColorStartG
movq qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xac], str.ColorStartB
movq qword [ebp - 0xa8], xmm0
mov dword [ebp - 0x9c], str.ColorStartA
movq qword [ebp - 0x98], xmm0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], str.ColorEndR
movq qword [ebp - 0x88], xmm0
lea eax, [ecx + 0xac]
mov dword [ebp - 0x7c], str.ColorEndG
mov dword [ebp - 0x80], eax
lea eax, [ecx + 0xb0]
mov dword [ebp - 0x70], eax
lea eax, [ecx + 0xb4]
mov dword [ebp - 0x60], eax
lea eax, [ecx + 0x18]
mov dword [ebp - 0x50], eax
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x48], eax
lea eax, [ecx + 0x20]
mov dword [ebp - 0x40], eax
lea eax, [ecx + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ecx + 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0x44]
mov dword [ebp - 0x20], eax
lea eax, [ecx + 0xc4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x516310]
push edi
push eax
movq qword [ebp - 0x78], xmm0
mov ecx, dword [eax]
mov dword [ebp - 0x6c], str.ColorEndB
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x5c], str.ColorEndA
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x4c], str.BlendMode
mov dword [ebp - 0x44], str.ParticleHotX
mov dword [ebp - 0x3c], str.ParticleHotY
mov dword [ebp - 0x34], str.ParticleWidth
mov dword [ebp - 0x2c], str.ParticleHeight
mov dword [ebp - 0x24], str.nEmission
mov dword [ebp - 0x1c], str.bRelative
mov dword [ebp - 0x14], str.bRandomAngle
call dword [ecx + 0x64]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.004a3510
mov ecx, dword [0x516328]
push edi
mov dword [ebp - 4], 0
call fcn.00492ac0
mov esi, eax
test esi, esi
jne 0x48137a
push 0x10
push str.Cannot_find_particle
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x5199f4
je 0x48134f
push eax
call fcn.004c2d3c
add esp, 4
lea ecx, [ebp - 0x2ec]
call fcn.004a3b80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1624
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
lea ecx, [ebp - 0x2ec]
call fcn.004a64b0
push esi
call fcn.004c273d
add esp, 4
cmp byte [ebp - 0x2c0], 0
jne 0x481326
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x298], eax
lea ecx, [ebp - 0x298]
push 0x4e0ec0
lea eax, [ebp - 0x2a4]
push eax
call fcn.004a4780
mov esi, dword [eax]
test esi, esi
je 0x481326
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x481326
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x481326
xor ebx, ebx
lea edi, [ebp - 0x288]
nop
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x481404
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x481406
xor eax, eax
lea ecx, [ebp - 0x2a0]
push ecx
push dword [edi - 4]
mov ecx, eax
call fcn.004a53f0
test eax, eax
jne 0x481429
movsd xmm0, qword [ebp - 0x2a0]
cvtpd2ps xmm0, xmm0
jmp 0x48143a
cmp byte [edi], 0
je 0x481326
movd xmm0, dword [edi + 4]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi - 8]
inc ebx
add edi, 0x10
movss dword [eax], xmm0
cmp ebx, 0x24
jb 0x4813f0
xor edi, edi
lea esp, [esp]
mov ebx, dword [ebp + edi*8 - 0x50]
mov ecx, esi
mov dword [ebx], 0
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
je 0x48146e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x481470
xor eax, eax
push ebx
push dword [ebp + edi*8 - 0x4c]
mov ecx, eax
call fcn.004a5430
inc edi
cmp edi, 8
jb 0x481450
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x481496
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x481498
xor eax, eax
push 0x4e1050
mov ecx, eax
call fcn.004a3f20
mov esi, eax
test esi, esi
je 0x481326
cmp byte [esi], 0
jne 0x4814b7
xor ecx, ecx
jmp 0x4814c9
mov ecx, esi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4814c0
sub ecx, edx
mov edi, dword [ebp - 0x294]
push ecx
push esi
mov ecx, edi
call fcn.00433cc0
mov ecx, dword [0x516328]
push 0
push esi
call fcn.00492990
mov dword [edi + 0xc0], eax
test eax, eax
jne 0x4814fd
push 0x10
push str.Cannot_find_texture_for_particle
push esi
jmp 0x48131e
mov bl, 1
jmp 0x481328