Function at 0x1002c290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [0x100c5180]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
push esi
mov esi, dword [esp + 0x5c]
test ebx, ebx
je 0x1002c6ea
cmp dword [ebx + 0x18], 0
je 0x1002c6ea
cmp byte [esi + 1], 0
push ebp
push edi
je 0x1002c363
cmp byte [esi + 0xc], 0
jne 0x1002c363
movzx ecx, word [esi + 0x72]
movzx eax, word [esi + 0x70]
imul ecx, eax
push 4
push ecx
call fcn.10091108
add esp, 8
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1002c307
push str.HotPixel_Learning:_failed_to_allocate_memory_for_learning_map.
push esi
push 3
call fcn.1002d050
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x1002c363
mov byte [esi + 0xc], 1
mov eax, dword [ebx + 0x10]
test eax, eax
jg 0x1002c331
dec eax
push eax
push 0
push str.Called_caerPolarityEventPacketGetEventConst___with_invalid_event_offset__i__while_maximum_allowed_value_is__i.
push str.Polarity_Event
push 2
call sym.fppr9_x64_0404.dll_caerLog
add esp, 0x14
mov ebp, 4
jmp 0x1002c334
lea ebp, [ebx + 0x20]
mov eax, dword [ebx + 0xc]
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [ebp]
shld ecx, edi, 0x1f
cdq
or ecx, edx
shl edi, 0x1f
push ecx
or edi, eax
mov dword [esi + 0x14], ecx
push edi
push str.HotPixel_Learning:_started_on_ts_lli.
push esi
push 7
mov dword [esi + 0x10], edi
call fcn.1002d050
add esp, 0x14
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x14], ecx
jle 0x1002c6e8
lea eax, [ebx + 0x1c]
mov dword [esp + 0x20], eax
nop dword [eax]
test ecx, ecx
js 0x1002c38d
cmp ecx, dword [ebx + 0x10]
jge 0x1002c38d
mov ebp, eax
jmp 0x1002c3b1
mov eax, dword [ebx + 0x10]
dec eax
push eax
push ecx
push str.Called_caerPolarityEventPacketGetEvent___with_invalid_event_offset__i__while_maximum_allowed_value_is__i.
push str.Polarity_Event
push 2
call sym.fppr9_x64_0404.dll_caerLog
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, dword [esp + 0x20]
xor ebp, ebp
test byte [ebp], 1
je 0x1002c6d3
mov ecx, dword [ebp]
mov eax, ecx
shr eax, 0x11
mov dword [esp + 0x28], eax
mov eax, ecx
shr eax, 2
and eax, 0x7fff
shr ecx, 1
mov dword [esp + 0x24], eax
and ecx, 0xffffff01
mov eax, dword [ebx + 0xc]
cdq
mov edi, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 4]
mov byte [esp + 0x34], cl
mov ecx, edx
shld ecx, edi, 0x1f
cdq
shl edi, 0x1f
or ecx, edx
movzx edx, word [esi + 0x70]
or edi, eax
mov eax, dword [esp + 0x24]
movzx eax, ax
imul edx, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], ecx
add edx, dword [esp + 0x28]
cmp byte [esi + 0xc], 0
mov dword [esp + 0x2c], edx
je 0x1002c46d
mov eax, dword [esi + 0x18]
inc dword [eax + edx*4]
xor eax, eax
mov edx, dword [esi + 4]
add edx, dword [esi + 0x10]
adc eax, dword [esi + 0x14]
cmp ecx, eax
jl 0x1002c46d
jg 0x1002c43b
cmp edi, edx
jbe 0x1002c46d
push esi
call fcn.1002d0b0
push dword [esi + 0x18]
call fcn.1008de93
push dword [esp + 0x1c]
mov dword [esi + 0x18], 0
push edi
push str.HotPixel_Learning:_completed_on_ts_lli.
push esi
push 7
mov byte [esi + 0xc], 0
mov byte [esi + 1], 0
call fcn.1002d050
add esp, 0x1c
cmp byte [esi + 0x1c], 0
je 0x1002c4a8
xor eax, eax
cmp dword [esi + 0x20], eax
je 0x1002c4a8
mov ecx, dword [esi + 0x24]
nop dword [eax]
mov edx, dword [esp + 0x28]
movzx ebx, dx
cmp bx, word [ecx + eax*4]
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
jne 0x1002c4a3
mov ebx, dword [esp + 0x24]
cmp bx, word [ecx + eax*4 + 2]
mov ebx, dword [esp + 0x18]
je 0x1002c518
inc eax
cmp eax, edx
jb 0x1002c480
cmp byte [esi + 0x58], 0
je 0x1002c5ba
mov ecx, dword [esp + 0x2c]
mov edx, edi
mov eax, dword [esi + ecx*8 + 0x78]
mov ecx, dword [esi + ecx*8 + 0x7c]
shrd eax, ecx, 1
sar ecx, 1
sub edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
mov eax, edx
sbb eax, ecx
mov ecx, dword [esi + 0x5c]
test eax, eax
jg 0x1002c5be
jl 0x1002c4eb
cmp dword [esp + 0x30], ecx
jae 0x1002c5be
cmp byte [esp + 0x6c], 0
jne 0x1002c598
test byte [ebp], 1
je 0x1002c584
and dword [ebp], 0xfffffffe
mov eax, dword [ebx + 0x18]
sub eax, 1
jns 0x1002c57f
push str.Called_caerEventPacketHeaderSetEventValid___with_negative_value_
push str.EventPacket_Header
jmp 0x1002c58e
cmp byte [esp + 0x6c], 0
jne 0x1002c556
test byte [ebp], 1
je 0x1002c542
and dword [ebp], 0xfffffffe
mov eax, dword [ebx + 0x18]
sub eax, 1
jns 0x1002c53d
push str.Called_caerEventPacketHeaderSetEventValid___with_negative_value_
push str.EventPacket_Header
jmp 0x1002c54c
mov dword [ebx + 0x18], eax
jmp 0x1002c556
push str.Called_caerPolarityEventInvalidate___on_already_invalid_event.
push str.Polarity_Event
push 2
call sym.fppr9_x64_0404.dll_caerLog
add esp, 0xc
cmp byte [esp + 0x10], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
je 0x1002c572
add dword [esi + 0x28], 1
adc dword [esi + 0x2c], 0
jmp 0x1002c6d3
add dword [esi + 0x30], 1
adc dword [esi + 0x34], 0
jmp 0x1002c6d3
mov dword [ebx + 0x18], eax
jmp 0x1002c598
push str.Called_caerPolarityEventInvalidate___on_already_invalid_event.
push str.Polarity_Event
push 2
call sym.fppr9_x64_0404.dll_caerLog
add esp, 0xc
mov eax, dword [esp + 0x10]
test al, al
je 0x1002c5ad
add dword [esi + 0x60], 1
adc dword [esi + 0x64], 0
jmp 0x1002c6a5
add dword [esi + 0x68], 1
adc dword [esi + 0x6c], 0
jmp 0x1002c6a5
mov edx, dword [esp + 0x14]
cmp byte [esi + 0x38], 0
je 0x1002c6a1
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push edx
push edi
push dword [esp + 0x3c]
movzx eax, ax
push eax
push dword [esp + 0x40]
push esi
call fcn.1002cc80
movzx ecx, byte [esi + 0x3b]
add esp, 0x20
mov dword [esp + 0x30], eax
cmp eax, ecx
jb 0x1002c647
movzx ecx, byte [esi + 0x3c]
cmp eax, ecx
ja 0x1002c647
cmp byte [esi + 0x39], 0
je 0x1002c6a1
xor ebx, ebx
test eax, eax
je 0x1002c643
mov edi, dword [esp + ebx*4 + 0x3c]
xor edx, edx
movzx ecx, word [esi + 0x70]
mov eax, edi
div ecx
push 0
push dword [esp + 0x38]
push dword [esp + 0x1c]
push dword [esp + 0x44]
push edi
push eax
push edx
push esi
call fcn.1002cc80
add esp, 0x20
test eax, eax
jne 0x1002c6a1
inc ebx
cmp ebx, dword [esp + 0x30]
jb 0x1002c610
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x6c], 0
jne 0x1002c685
test byte [ebp], 1
je 0x1002c671
and dword [ebp], 0xfffffffe
mov eax, dword [ebx + 0x18]
sub eax, 1
jns 0x1002c66c
push str.Called_caerEventPacketHeaderSetEventValid___with_negative_value_
push str.EventPacket_Header
jmp 0x1002c67b
mov dword [ebx + 0x18], eax
jmp 0x1002c685
push str.Called_caerPolarityEventInvalidate___on_already_invalid_event.
push str.Polarity_Event
push 2
call sym.fppr9_x64_0404.dll_caerLog
add esp, 0xc
mov eax, dword [esp + 0x10]
test al, al
je 0x1002c697
add dword [esi + 0x48], 1
adc dword [esi + 0x4c], 0
jmp 0x1002c6a5
add dword [esi + 0x50], 1
adc dword [esi + 0x54], 0
jmp 0x1002c6a5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
shld ebx, ecx, 1
movzx eax, al
cdq
add ecx, ecx
or ecx, eax
mov eax, dword [esp + 0x2c]
or ebx, edx
mov dword [esi + eax*8 + 0x78], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + eax*8 + 0x7c], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc ecx
add eax, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp ecx, dword [ebx + 0x14]
jl 0x1002c380
pop edi
pop ebp
mov ecx, dword [esp + 0x54]
pop esi
pop ebx
xor ecx, esp
call fcn.1008a4e9
add esp, 0x50
ret