Function at 0x1012cf90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1017833d
push eax
mov dword fs:[0], esp
sub esp, 0x1c
cmp dword [0x1029cde0], 2
jne 0x1012d479
mov eax, dword [0x1029cde8]
sub eax, 0xed
je 0x1012d479
sub eax, 0x1c
je 0x1012d479
cmp byte [0x1029cddc], 0
je 0x1012d479
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
call fcn.10164b20
and eax, 0x7fffffff
push ecx
mov ecx, eax
call fcn.1012cc90
mov ecx, dword [0x1029d0f0]
add esp, 4
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [0x1029d0f0]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x1029b784]
mov ebx, 6
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
nop word [eax + eax]
mov eax, dword [0x1029d0e0]
cmp eax, dword [esi + 4]
jle 0x1012d07c
push 0x1029d0e0
call fcn.1016f60a
add esp, 4
cmp dword [0x1029d0e0], 0xffffffff
jne 0x1012d07c
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029d0e0
mov dword [0x1029d0ec], eax
call fcn.1016f5b9
add esp, 4
sub esp, 8
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [0x1029d0ec]
add esp, 8
fstp st(0)
sub ebx, 1
jne 0x1012d030
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x14
je 0x1012d36d
cmp eax, 0x3d
je 0x1012d177
cmp dword [0x1029cde8], 0x2da
jne 0x1012d476
mov eax, dword [0x10298654]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1012d0fc
mov ecx, 0x10298654
call fcn.1016e320
mov eax, dword [0x10298654]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call eax
mov ecx, dword [0x1029ce1c]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x4c]
call eax
movss xmm1, dword [ebp - 0x1c]
subss xmm1, dword [ebp - 0x28]
movss xmm0, dword [edi + 0xc]
subss xmm0, xmm1
movss xmm1, dword [ebp - 0x18]
subss xmm1, dword [ebp - 0x24]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [edi + 0x10]
subss xmm0, xmm1
movss xmm1, dword [ebp - 0x14]
subss xmm1, dword [ebp - 0x20]
movss dword [edi + 0x10], xmm0
movss xmm0, dword [edi + 0x14]
subss xmm0, xmm1
movss dword [edi + 0x14], xmm0
jmp 0x1012d46f
mov ecx, dword [0x1029cf58]
cmp ecx, dword [esi + 4]
jle 0x1012d1d2
push 0x1029cf58
call fcn.1016f60a
mov ecx, dword [0x1029cf58]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1012d1d2
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 0
call fcn.1016e290
push 0x1029cf58
mov dword [0x1029cf80], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1016f5b9
mov ecx, dword [0x1029cf58]
add esp, 4
mov eax, dword [0x1029cf80]
xorps xmm1, xmm1
movss xmm0, dword [eax + ebx]
comiss xmm0, xmm1
jbe 0x1012d256
cmp ecx, dword [esi + 4]
jle 0x1012d231
push 0x1029cf58
call fcn.1016f60a
add esp, 4
cmp dword [0x1029cf58], 0xffffffff
jne 0x1012d231
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 1
call fcn.1016e290
push 0x1029cf58
mov dword [0x1029cf80], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1016f5b9
add esp, 4
mov eax, dword [0x1029ce20]
movss xmm0, dword [0x10285a6c]
movss xmm1, dword [eax + 0xc]
mov eax, dword [0x1029cf80]
subss xmm1, dword [eax + ebx]
comiss xmm0, xmm1
jae 0x1012d476
mov eax, dword [0x1029d038]
cmp eax, dword [esi + 4]
jle 0x1012d2a6
push 0x1029d038
call fcn.1016f60a
add esp, 4
cmp dword [0x1029d038], 0xffffffff
jne 0x1012d2a6
push str.RandomInt
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1029d038
mov dword [0x1029d030], eax
call fcn.1016f5b9
add esp, 4
jmp 0x1012d2ac
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1029d030]
push 0x7fff
push 0
call eax
movss xmm0, dword [edi + 0xc]
add esp, 8
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x10285c68]
mulss xmm1, dword [0x10285a94]
subss xmm1, dword [0x10285a78]
subss xmm0, xmm1
movss dword [edi + 0xc], xmm0
mov eax, dword [0x1029d038]
cmp eax, dword [esi + 4]
jle 0x1012d332
push 0x1029d038
call fcn.1016f60a
add esp, 4
cmp dword [0x1029d038], 0xffffffff
jne 0x1012d332
push str.RandomInt
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0x1029d038
mov dword [0x1029d030], eax
call fcn.1016f5b9
add esp, 4
mov eax, dword [0x1029d030]
push 0x7fff
push 0
call eax
movss xmm0, dword [edi + 0x10]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x10285c68]
mulss xmm1, dword [0x10285a94]
subss xmm1, dword [0x10285a78]
subss xmm0, xmm1
jmp 0x1012d467
mov eax, dword [0x1029d0e0]
cmp eax, dword [esi + 4]
jle 0x1012d3bd
push 0x1029d0e0
call fcn.1016f60a
add esp, 4
cmp dword [0x1029d0e0], 0xffffffff
jne 0x1012d3bd
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1029d0e0
mov dword [0x1029d0ec], eax
call fcn.1016f5b9
add esp, 4
jmp 0x1012d3c3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1029d0ec]
sub esp, 8
mov dword [ebp + 0x10], eax
mov dword [esp + 4], 0x3fc00000
mov dword [esp], 0xbfc00000
call dword [ebp + 0x10]
movss xmm0, dword [edi + 0xc]
add esp, 8
fstp dword [ebp + 0x10]
subss xmm0, dword [ebp + 0x10]
movss dword [edi + 0xc], xmm0
mov eax, dword [0x1029d0e0]
cmp eax, dword [esi + 4]
jle 0x1012d43d
push 0x1029d0e0
call fcn.1016f60a
add esp, 4
cmp dword [0x1029d0e0], 0xffffffff
jne 0x1012d43d
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0x1029d0e0
mov dword [0x1029d0ec], eax
call fcn.1016f5b9
add esp, 4
mov eax, dword [0x1029d0ec]
sub esp, 8
mov dword [ebp + 0x10], eax
mov dword [esp + 4], 0x3fc00000
mov dword [esp], 0xbfc00000
call dword [ebp + 0x10]
movss xmm0, dword [edi + 0x10]
fstp dword [ebp + 0x10]
subss xmm0, dword [ebp + 0x10]
movss dword [edi + 0x10], xmm0
add esp, 8
mov byte [0x1029cf3c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc