Function at 0x1012dfd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1017985d
push eax
mov dword fs:[0], esp
sub esp, 0x1c
cmp dword [0x1029da30], 2
jne 0x1012e4b9
mov eax, dword [0x1029da38]
sub eax, 0xed
je 0x1012e4b9
sub eax, 0x1c
je 0x1012e4b9
cmp byte [0x1029da2c], 0
je 0x1012e4b9
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
call fcn.10165d20
and eax, 0x7fffffff
push ecx
mov ecx, eax
call fcn.1012dcd0
mov ecx, dword [0x1029dd40]
add esp, 4
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [0x1029dd40]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x1029c3d4]
mov ebx, 6
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
nop word [eax + eax]
mov eax, dword [0x1029dd30]
cmp eax, dword [esi + 4]
jle 0x1012e0bc
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012e0bc
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
sub esp, 8
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [0x1029dd3c]
add esp, 8
fstp st(0)
sub ebx, 1
jne 0x1012e070
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x14
je 0x1012e3ad
cmp eax, 0x3d
je 0x1012e1b7
cmp dword [0x1029da38], 0x2da
jne 0x1012e4b6
mov eax, dword [0x10299654]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1012e13c
mov ecx, 0x10299654
call fcn.1016f570
mov eax, dword [0x10299654]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call eax
mov ecx, dword [0x1029da6c]
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 0x1012e4af
mov ecx, dword [0x1029dba8]
cmp ecx, dword [esi + 4]
jle 0x1012e212
push 0x1029dba8
call fcn.101707aa
mov ecx, dword [0x1029dba8]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1012e212
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 0
call fcn.1016f4e0
push 0x1029dba8
mov dword [0x1029dbd0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10170759
mov ecx, dword [0x1029dba8]
add esp, 4
mov eax, dword [0x1029dbd0]
xorps xmm1, xmm1
movss xmm0, dword [eax + ebx]
comiss xmm0, xmm1
jbe 0x1012e296
cmp ecx, dword [esi + 4]
jle 0x1012e271
push 0x1029dba8
call fcn.101707aa
add esp, 4
cmp dword [0x1029dba8], 0xffffffff
jne 0x1012e271
push str.m_flChargeBeginTime
push str.CTFPipebombLauncher
mov dword [ebp - 4], 1
call fcn.1016f4e0
push 0x1029dba8
mov dword [0x1029dbd0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10170759
add esp, 4
mov eax, dword [0x1029da70]
movss xmm0, dword [0x10286da4]
movss xmm1, dword [eax + 0xc]
mov eax, dword [0x1029dbd0]
subss xmm1, dword [eax + ebx]
comiss xmm0, xmm1
jae 0x1012e4b6
mov eax, dword [0x1029dc88]
cmp eax, dword [esi + 4]
jle 0x1012e2e6
push 0x1029dc88
call fcn.101707aa
add esp, 4
cmp dword [0x1029dc88], 0xffffffff
jne 0x1012e2e6
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 0x1029dc88
mov dword [0x1029dc80], eax
call fcn.10170759
add esp, 4
jmp 0x1012e2ec
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1029dc80]
push 0x7fff
push 0
call eax
movss xmm0, dword [edi + 0xc]
add esp, 8
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x10286fa0]
mulss xmm1, dword [0x10286dcc]
subss xmm1, dword [0x10286db0]
subss xmm0, xmm1
movss dword [edi + 0xc], xmm0
mov eax, dword [0x1029dc88]
cmp eax, dword [esi + 4]
jle 0x1012e372
push 0x1029dc88
call fcn.101707aa
add esp, 4
cmp dword [0x1029dc88], 0xffffffff
jne 0x1012e372
push str.RandomInt
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0x1029dc88
mov dword [0x1029dc80], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dc80]
push 0x7fff
push 0
call eax
movss xmm0, dword [edi + 0x10]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x10286fa0]
mulss xmm1, dword [0x10286dcc]
subss xmm1, dword [0x10286db0]
subss xmm0, xmm1
jmp 0x1012e4a7
mov eax, dword [0x1029dd30]
cmp eax, dword [esi + 4]
jle 0x1012e3fd
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012e3fd
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 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
jmp 0x1012e403
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x1029dd3c]
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 [0x1029dd30]
cmp eax, dword [esi + 4]
jle 0x1012e47d
push 0x1029dd30
call fcn.101707aa
add esp, 4
cmp dword [0x1029dd30], 0xffffffff
jne 0x1012e47d
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0x1029dd30
mov dword [0x1029dd3c], eax
call fcn.10170759
add esp, 4
mov eax, dword [0x1029dd3c]
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 [0x1029db8c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc