Function at 0x4779c0
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 0x4ca4db
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4faa80]
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 - 0x284], ecx
lea eax, [ecx + 0x30]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x280], eax
lea eax, [ecx + 0x34]
mov dword [ebp - 0x270], eax
lea eax, [ecx + 0x38]
mov dword [ebp - 0x260], eax
lea eax, [ecx + 0x3c]
mov dword [ebp - 0x250], eax
lea eax, [ecx + 0x40]
mov dword [ebp - 0x240], eax
lea eax, [ecx + 0x48]
mov dword [ebp - 0x230], eax
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x220], eax
lea eax, [ecx + 0x50]
mov dword [ebp - 0x210], eax
lea eax, [ecx + 0x54]
mov dword [ebp - 0x200], eax
lea eax, [ecx + 0x58]
mov dword [ebp - 0x1f0], eax
lea eax, [ecx + 0x5c]
mov dword [ebp - 0x1e0], eax
lea eax, [ecx + 0x60]
mov dword [ebp - 0x1d0], eax
lea eax, [ecx + 0x64]
mov dword [ebp - 0x1c0], eax
lea eax, [ecx + 0x70]
mov dword [ebp - 0x1b0], eax
lea eax, [ecx + 0x74]
mov dword [ebp - 0x1a0], eax
lea eax, [ecx + 0x78]
mov dword [ebp - 0x27c], str.Lifetime
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x26c], str.ParticleLifeMin
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x25c], str.ParticleLifeMax
mov byte [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], str.Direction
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], str.Spread
mov byte [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], str.SpeedMin
mov byte [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], str.SpeedMax
mov byte [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x20c], str.GravityMin
mov byte [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x1fc], str.GravityMax
mov byte [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1ec], str.RadialAccelMin
mov byte [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1dc], str.RadialAccelMax
mov byte [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], str.TangentialAccelMin
mov byte [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], str.TangentialAccelMax
mov byte [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1ac], str.InitialDistMin
mov byte [ebp - 0x1a8], 1
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x19c], str.InitialDistMax
mov byte [ebp - 0x198], 1
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], 0x4d25a0
mov byte [ebp - 0x188], 1
mov dword [ebp - 0x184], 0
lea eax, [ecx + 0x7c]
mov dword [ebp - 0x17c], str.FadeOut
mov dword [ebp - 0x180], eax
xorps xmm0, xmm0
lea eax, [ecx + 0x68]
mov byte [ebp - 0x178], 1
mov dword [ebp - 0x170], eax
lea eax, [ecx + 0x6c]
mov dword [ebp - 0x160], eax
lea eax, [ecx + 0x80]
mov dword [ebp - 0x150], eax
lea eax, [ecx + 0x84]
mov dword [ebp - 0x140], eax
lea eax, [ecx + 0x88]
mov dword [ebp - 0x130], eax
lea eax, [ecx + 0x8c]
mov dword [ebp - 0x120], eax
lea eax, [ecx + 0x90]
mov dword [ebp - 0x110], eax
lea eax, [ecx + 0x94]
mov dword [ebp - 0x100], eax
lea eax, [ecx + 0xb8]
mov dword [ebp - 0xf0], eax
lea eax, [ecx + 0xbc]
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 - 0x90], eax
lea eax, [ecx + 0xac]
mov dword [ebp - 0x80], eax
lea eax, [ecx + 0xb0]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x16c], str.OriginXAmplitude
mov byte [ebp - 0x168], 1
mov dword [ebp - 0x164], 2
mov dword [ebp - 0x15c], str.OriginYAmplitude
mov byte [ebp - 0x158], 1
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x14c], str.SizeStart
mov byte [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], str.SizeEnd
mov byte [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], str.SizeVar
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x11c], str.SpinStart
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], str.SpinEnd
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xfc], str.SpinVar
mov byte [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xec], str.ColorVar
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], str.AlphaVar
mov byte [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
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 - 0x8c], str.ColorEndR
movq qword [ebp - 0x88], xmm0
mov dword [ebp - 0x7c], str.ColorEndG
movq qword [ebp - 0x78], xmm0
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 [0x4fec20]
push edi
push eax
mov dword [ebp - 0x6c], str.ColorEndB
mov ecx, dword [eax]
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 + 0x5c]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00498120
mov ecx, dword [0x4fec38]
push edi
mov dword [ebp - 4], 0
call fcn.00488950
mov esi, eax
test esi, esi
jne 0x477fb3
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 - 0x2a8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x500af4
je 0x477f88
push eax
call fcn.004afe34
add esp, 4
lea ecx, [ebp - 0x2dc]
call fcn.00498790
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.004ae734
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0049b0c0
push esi
call fcn.004afdfc
add esp, 4
cmp byte [ebp - 0x2b0], 0
jne 0x477f5f
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x288]
push 0x4cce40
lea eax, [ebp - 0x294]
push eax
call fcn.00499390
mov esi, dword [eax]
test esi, esi
je 0x477f5f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x477f5f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x477f5f
xor ebx, ebx
lea edi, [ebp - 0x278]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x47803c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x47803e
xor eax, eax
lea ecx, [ebp - 0x290]
push ecx
push dword [edi - 4]
mov ecx, eax
call fcn.0049a000
test eax, eax
jne 0x478061
movsd xmm0, qword [ebp - 0x290]
cvtpd2ps xmm0, xmm0
jmp 0x478072
cmp byte [edi], 0
je 0x477f5f
movd xmm0, dword [edi + 4]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi - 8]
inc ebx
add edi, 0x10
movss dword [eax], xmm0
cmp ebx, 0x23
jb 0x478028
xor edi, edi
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 0x4780a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x4780a4
xor eax, eax
push ebx
push dword [ebp + edi*8 - 0x4c]
mov ecx, eax
call fcn.0049a040
inc edi
cmp edi, 8
jb 0x478084
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x4780ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x4780cc
xor eax, eax
push 0x4ccfd0
mov ecx, eax
call fcn.00498b30
mov esi, eax
test esi, esi
je 0x477f5f
cmp byte [esi], 0
jne 0x4780eb
xor ecx, ecx
jmp 0x4780f9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4780f0
sub ecx, edx
mov edi, dword [ebp - 0x284]
push ecx
push esi
mov ecx, edi
call fcn.00433940
mov ecx, dword [0x4fec38]
push 0
push esi
call fcn.00488820
mov dword [edi + 0xc0], eax
test eax, eax
jne 0x47812d
push 0x10
push str.Cannot_find_texture_for_particle
push esi
jmp 0x477f57
mov bl, 1
jmp 0x477f61