Function at 0x1005ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084091
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100ba040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword fs:[0x2c]
mov edx, dword [0x100baba8]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [eax + edx*4]
mov eax, dword [0x100be61c]
cmp eax, dword [edx + 4]
jle 0x1005badd
push 0x100be61c
call fcn.1007f65a
add esp, 4
cmp dword [0x100be61c], 0xffffffff
jne 0x1005badd
mov dword [ebp - 4], 0
call edi
sub eax, dword [0xcc18c84]
mov dword [0x100be620], eax
mov dword [ebp - 4], 0xffffffff
push 0x100be61c
call fcn.1007f609
add esp, 4
cmp byte [ebx + 0x6d], 0
lea esi, [ebx + 0x6c]
jne 0x1005baeb
cmp byte [esi], 0
jne 0x1005bafc
call edi
sub eax, dword [0xcc18c84]
mov dword [0x100be620], eax
mov byte [ebx + 0x6d], 0
cmp byte [ebx + 0x6e], 0
mov byte [esi], 1
jne 0x1005bb5e
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebx + 0x5c]
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, esi
jl 0x1005bb73
push esi
push ecx
push str.Segmenter_Prepare__:_segment_frame___i____GetTotalFrames____1___i__n
push 7
call fcn.1000ab80
mov ecx, dword [ebx + 4]
mov eax, 0x66666667
sub ecx, dword [ebx]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [ebx + 0x5c]
push str.Segmenter_Prepare__:_segment_frame___i____GetTotalFrames____1___i__n
push 5
call fcn.1000ab80
add esp, 0x20
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jae 0x1005bca4
lea ebx, [ecx + ecx*4]
shl ebx, 4
add ebx, dword [ebp - 0x10]
je 0x1005bca4
mov eax, dword [0x100be270]
cmp eax, 0xa
jle 0x1005bbf7
mov eax, dword [0x100ba09c]
movss xmm0, dword [eax + 0x2568c]
movss dword [0x100be258], xmm0
movss xmm0, dword [eax + 0x25690]
movss dword [0x100be25c], xmm0
movss xmm0, dword [eax + 0x25694]
xor eax, eax
movss dword [0x100be260], xmm0
movss xmm0, dword [ebx + 0x18]
movss dword [0x100be264], xmm0
movss xmm0, dword [ebx + 0x1c]
movss dword [0x100be268], xmm0
movss xmm0, dword [ebx + 0x20]
movss dword [0x100be26c], xmm0
mov byte [0x100be254], 1
mov esi, dword [0x100be540]
inc eax
mov dword [0x100be270], eax
call edi
movss xmm0, dword [esi + 0xc]
mov edi, eax
mulss xmm0, dword [0x100b1c54]
sub edi, dword [0xcc18c84]
call fcn.10080870
add eax, dword [0x100be620]
cmp eax, edi
jae 0x1005bc9e
push str.2launch_n
push 5
call fcn.1000aa50
mov ecx, dword [0x100ba098]
add esp, 8
mov eax, dword [ebx]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0xc]
and eax, 0xfffffe7f
or eax, 0x4000
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x54], 0
mov word [eax + 0x6d], 0x101
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [0x100be540]
call edi
movss xmm0, dword [esi + 0xc]
mov edi, eax
mulss xmm0, dword [0x100b1c54]
sub edi, dword [0xcc18c84]
call fcn.10080870
sub eax, edi
add eax, dword [0x100be620]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret