Function at 0x402f30
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3fbe
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x572b90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x1c], vtable.sf::Drawable.0
mov dword [ebp - 0x24], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x1c], vtable.Enemy.1.0
mov word [ebx + 0x24], 1
mov byte [ebx + 0x26], 1
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0x3f000000
mov dword [ebx + 0x30], 0x3dcccccd
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0xc37a0000
mov dword [ebx + 0x40], 0xc37a0000
mov dword [ebx + 0x44], 0x43fa0000
mov dword [ebp - 4], 0
mov dword [ebx + 0x48], vtable.sf::Drawable.0
lea edi, [ebx + 0x6c]
mov dword [ebx], vtable.Asteroid.2.0
mov dword [ebx + 0x1c], vtable.Asteroid.1.0
mov dword [ebx + 0x48], vtable.Asteroid.0
mov dword [ebx + 0x50], 0x41700000
mov dword [ebx + 0x54], 0x43960000
mov dword [ebx + 0x58], 0x42480000
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0xc37a0000
mov dword [ebx + 0x64], 0xc37a0000
mov byte [ebx + 0x68], 0
mov dword [edi], 0
mov dword [ebx + 0x70], 0
push 0x110
mov byte [ebp - 4], 3
call fcn.004c0775
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x110
push 0
push esi
mov byte [ebp - 4], 4
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00418970
mov ecx, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
lea esi, [ebx + 4]
cmp esi, eax
je 0x403086
mov edx, dword [esi]
mov dword [esi], ecx
test edx, edx
je 0x403090
mov eax, dword [edx]
mov ecx, edx
jmp 0x40308c
test ecx, ecx
je 0x403090
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi]
push 0
push dword [ebp - 0x24]
call fcn.00418ad0
push 0x11c
call fcn.004c0775
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x11c
push 0
push esi
mov byte [ebp - 4], 5
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov ecx, esi
push eax
call fcn.0041cb30
mov ecx, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
cmp edi, eax
je 0x4030f6
mov edx, dword [edi]
mov dword [edi], ecx
test edx, edx
je 0x403100
mov eax, dword [edx]
mov ecx, edx
jmp 0x4030fc
test ecx, ecx
je 0x403100
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x3f800000
mov dword [ebp - 0x18], 0x4b189680
call fcn.0041cc40
mov ecx, dword [edi]
lea eax, [ebp - 0x1c]
push eax
add ecx, 4
mov dword [ebp - 0x1c], 0xbf800000
mov dword [ebp - 0x18], 0xc61c4000
call fcn.00419180
push 0x11c
call fcn.004c0775
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x11c
push 0
push esi
mov byte [ebp - 4], 6
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov ecx, esi
push eax
call fcn.0041cb30
mov ecx, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
lea esi, [ebx + 0x70]
cmp esi, eax
je 0x403192
mov edx, dword [esi]
mov dword [esi], ecx
test edx, edx
je 0x40319c
mov eax, dword [edx]
mov ecx, edx
jmp 0x403198
test ecx, ecx
je 0x40319c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x3f800000
mov dword [ebp - 0x18], 0x4b189680
call fcn.0041cc40
mov ecx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
add ecx, 4
mov dword [ebp - 0x1c], 0x449fe000
mov dword [ebp - 0x18], 0xc61c4000
call fcn.00419180
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x56a0a4]
mulss xmm0, dword [ebx + 0x54]
movss dword [ebx + 0x10], xmm0
call esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x56a0a4]
mulss xmm0, dword [ebx + 0x58]
movss dword [ebx + 0x14], xmm0
call esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x56a0a4]
mulss xmm0, dword [ebx + 0x50]
movss dword [ebx + 0x4c], xmm0
call esi
and eax, 0x80000001
jns 0x403236
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jle 0x40324c
movss xmm0, dword [ebx + 0x10]
mulss xmm0, dword [0x56a0b8]
movss dword [ebx + 0x10], xmm0
call esi
and eax, 0x80000001
jns 0x40325a
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jle 0x403270
movss xmm0, dword [ebx + 0x14]
mulss xmm0, dword [0x56a0b8]
movss dword [ebx + 0x14], xmm0
call esi
and eax, 0x80000001
jns 0x40327e
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jle 0x403294
movss xmm0, dword [ebx + 0x4c]
mulss xmm0, dword [0x56a0b8]
movss dword [ebx + 0x4c], xmm0
mov ecx, dword [ebx + 4]
sub esp, 8
add ecx, 4
mov dword [esp + 4], 0x41500000
mov dword [esp], 0x41700000
call fcn.00419150
mov ecx, dword [ebx + 4]
sub esp, 8
add ecx, 4
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40000000
call fcn.00419270
push 0x11c
mov byte [ebx + 0x18], 1
call fcn.004c0775
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x11c
push 0
push esi
mov byte [ebp - 4], 7
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1e
push ecx
mov ecx, esi
mov dword [esp], 0
call fcn.00418ce0
mov ebx, eax
mov dword [ebp - 0x18], ebx
push ecx
mov byte [ebp - 4], 8
mov ecx, ebx
mov dword [esp], 0x41700000
call fcn.00418e60
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, 4
call fcn.00418f30
push eax
lea ecx, [ebx + 4]
call fcn.00419240
push 0xff0000aa
lea ecx, [ebp - 0x20]
call fcn.0041a7c0
push eax
mov ecx, ebx
call fcn.0041c410
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.0041c3e0
mov ecx, ebx
mov esi, eax
call fcn.00418e50
movss xmm0, dword [esi + 4]
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
movss dword [ebp - 0x24], xmm0
fstp dword [ebp - 0x28]
call fcn.0041c3e0
mov ecx, ebx
mov esi, eax
call fcn.00418e50
movss xmm0, dword [ebp - 0x28]
lea ecx, [ebx + 4]
addss xmm0, dword [ebp - 0x24]
sub esp, 8
fstp dword [ebp - 0x20]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x20]
addss xmm0, dword [esi]
movss dword [esp], xmm0
call fcn.00419150
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
test ecx, ecx
je 0x4033c0
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp + 0x10]
mov eax, esi
mov dword [esi + 0x20], 0x41000000
mov dword [esi + 0x74], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c0767
mov esp, ebp
pop ebp
ret 0xc