Function at 0x1001b420
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x34]
push eax
mov dword [ebp - 0x14], eax
call edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x4c]
call fcn.1001c460
mov eax, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 8], ecx
cmp eax, dword [esi + 0x50]
je 0x1001b95b
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1001b95b
mov eax, dword [ebx + 0xc]
cmp eax, 0xa
ja case.0x1001b488.1
jmp dword [eax*4 + 0x1001b974]
mov edi, dword [ebx + 0x14]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b497
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x134]
call fcn.10010480
call fcn.1001cc80
mov esi, eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001b4d3
push edi
push 0xa
push dword [ebx + 8]
call eax
lea eax, [esi + 4]
push eax
call dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push dword [ebx + 0x14]
mov ecx, esi
push dword [ebx + 0x10]
call fcn.100125f0
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
cmp byte [esi], 0
je case.0x1001b488.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x28], xmm0
call fcn.10021bea
push 0
push 0x2710
push edx
push eax
call fcn.10045110
mov ecx, eax
call fcn.10045880
movaps xmm2, xmm0
movsd xmm1, qword [0x100760c8]
divsd xmm2, qword [0x10076108]
mov eax, dword [esi + 0x9c]
movsd xmm3, qword [0x10076088]
subsd xmm2, qword [ebp - 0x28]
movsd qword [ebp - 0x10], xmm1
movsd qword [ebp - 0x30], xmm2
movsd xmm0, qword [eax - 8]
subsd xmm0, xmm1
movsd xmm1, qword [0x100761b0]
andps xmm0, xmm1
comisd xmm3, xmm0
jbe 0x1001b5b4
mov eax, dword [esi + 0x54]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm1
comisd xmm3, xmm0
ja 0x1001b941
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x50]
cmp eax, dword [ecx + 8]
je 0x1001b5c9
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x1001b5d3
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.10016430
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0xa0]
je 0x1001b5f3
movsd xmm0, qword [ebp - 0x10]
movsd qword [eax], xmm0
add dword [esi + 0x9c], 8
jmp 0x1001b603
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [esi + 0x98]
call fcn.10016430
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xe8]
je 0x1001b63b
movsd xmm0, qword [ebp - 0x10]
push dword [ebp - 0x14]
movsd qword [eax], xmm0
mov ecx, dword [ebp - 8]
add dword [esi + 0xe4], 8
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [esi + 0xe0]
call fcn.10016430
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
cmp byte [esi], 0
je case.0x1001b488.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x30], xmm0
call fcn.10021bea
push 0
push 0x2710
push edx
push eax
call fcn.10045110
mov ecx, eax
call fcn.10045880
movaps xmm2, xmm0
movsd xmm1, qword [0x100760c8]
divsd xmm2, qword [0x10076108]
mov eax, dword [esi + 0xa8]
movsd xmm3, qword [0x10076088]
subsd xmm2, qword [ebp - 0x30]
movsd qword [ebp - 0x20], xmm1
movsd qword [ebp - 0x38], xmm2
movsd xmm0, qword [eax - 8]
subsd xmm0, xmm1
movsd xmm1, qword [0x100761b0]
andps xmm0, xmm1
comisd xmm3, xmm0
jbe 0x1001b6f7
mov eax, dword [esi + 0x60]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm1
comisd xmm3, xmm0
ja 0x1001b941
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x5c]
cmp eax, dword [ecx + 8]
je 0x1001b70c
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x1001b716
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.10016430
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
je 0x1001b736
movsd xmm0, qword [ebp - 0x20]
movsd qword [eax], xmm0
add dword [esi + 0xa8], 8
jmp 0x1001b746
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xa4]
call fcn.10016430
mov eax, dword [esi + 0xf0]
cmp eax, dword [esi + 0xf4]
je 0x1001b77e
movsd xmm0, qword [ebp - 0x20]
push dword [ebp - 0x14]
movsd qword [eax], xmm0
mov ecx, dword [ebp - 8]
add dword [esi + 0xf0], 8
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0xec]
call fcn.10016430
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
cmp byte [esi], 0
je case.0x1001b488.1
movsd xmm0, qword [esi + 0x170]
movsd qword [ebp - 0x38], xmm0
call fcn.10021bea
push 0
push 0x2710
push edx
push eax
call fcn.10045110
mov ecx, eax
call fcn.10045880
movaps xmm2, xmm0
mov eax, dword [ebx + 0x10]
divsd xmm2, qword [0x10076108]
movsd xmm3, qword [0x10076088]
subsd xmm2, qword [ebp - 0x38]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movsd qword [ebp - 0x40], xmm2
addsd xmm1, qword [eax*8 + 0x100761a0]
mov eax, dword [esi + 0x78]
movsd qword [ebp - 0x28], xmm1
movsd xmm0, qword [eax - 8]
subsd xmm0, xmm1
movsd xmm1, qword [0x100761b0]
andps xmm0, xmm1
comisd xmm3, xmm0
jbe 0x1001b846
mov eax, dword [esi + 0x30]
movaps xmm0, xmm2
subsd xmm0, qword [eax - 8]
andps xmm0, xmm1
comisd xmm3, xmm0
ja 0x1001b941
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x2c]
cmp eax, dword [ecx + 8]
je 0x1001b85b
movsd qword [eax], xmm2
add dword [ecx + 4], 8
jmp 0x1001b865
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.10016430
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
je 0x1001b87c
movsd xmm0, qword [ebp - 0x28]
movsd qword [eax], xmm0
add dword [esi + 0x78], 8
jmp 0x1001b889
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [esi + 0x74]
call fcn.10016430
mov eax, dword [esi + 0xc0]
cmp eax, dword [esi + 0xc4]
je 0x1001b8c1
movsd xmm0, qword [ebp - 0x28]
push dword [ebp - 0x14]
movsd qword [eax], xmm0
mov ecx, dword [ebp - 8]
add dword [esi + 0xc0], 8
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [esi + 0xbc]
call fcn.10016430
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1001cc80
mov esi, eax
lea eax, [esi + 4]
push eax
mov dword [ebp - 0xc], eax
call edi
mov eax, dword [esi + 0x1c]
mov esi, dword [ebx + 0x14]
test eax, eax
je 0x1001b90d
push esi
push 5
push dword [ebx + 8]
call eax
push dword [ebp - 0xc]
jmp 0x1001b937
call fcn.1001cc80
mov esi, eax
lea eax, [esi + 4]
push eax
mov dword [ebp - 0xc], eax
call edi
mov eax, dword [esi + 0x1c]
mov esi, dword [ebx + 0x14]
test eax, eax
je 0x1001b934
push esi
push 8
push dword [ebx + 8]
call eax
push dword [ebp - 0xc]
call dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x14]
mov byte [ebp - 1], 1
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push dword [ebp - 0x14]
mov byte [ebp - 1], 0
call ecx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10