Function at 0x10002610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d59c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
cmp byte [edi + 2], 0
je 0x10002672
push str.Device_already_is_initialized.
push 0xd5
push str.CDetector::InitDetector
push 3
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x18
xor esi, esi
jmp 0x100029ce
mov ecx, dword [ebp + 0x18]
mov esi, SysReAllocString
mov eax, esi
sub eax, ecx
cmp eax, 0x10
jb 0x10002a1e
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x10
cmovae eax, dword [ebp + 8]
push str._DetectorCfg.ini
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.100093c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
call fcn.1000b500
test eax, eax
lea eax, [ebp - 0x2c]
jne 0x100026f6
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_init_detector__reason:__s_doesnt_exist.
push 0xdc
push str.CDetector::InitDetector
push 4
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x1c
mov esi, 0x10
jmp 0x1000298c
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.1000a230
call fcn.1000abd0
mov ecx, dword [ebp + 0x18]
sub esi, ecx
cmp esi, 0x14
jb 0x10002a1e
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x14
cmovae eax, dword [ebp + 8]
push str._DataProcFeature.xml
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.100093c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
cmovae ecx, dword [ebp - 0x44]
call fcn.1000b500
test eax, eax
jne 0x10002789
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_init_detector__reason:__s_doesnt_exist.
push 0xe5
push str.CDetector::InitDetector
push 4
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x1c
mov esi, 0x10
jmp 0x10002946
mov ecx, dword [edi + 0xd0]
test ecx, ecx
je 0x100027a3
push ecx
call fcn.10002a30
mov dword [edi + 0xd0], 0
push 0x2c
call fcn.10019571
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1000280c
push 0x2c
push 0
push esi
call fcn.10155cd0
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
sub esp, 0xc
mov ebx, esp
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebp - 0x48], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100027f0
sub ecx, dword [ebp - 0x48]
push ecx
push edx
mov ecx, ebx
call fcn.1000a9a0
mov ecx, esi
call fcn.10014960
jmp 0x1000280e
xor eax, eax
mov byte [ebp - 4], 2
mov dword [edi + 0xd0], eax
mov eax, dword [eax]
test eax, eax
je 0x100028d1
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100028d1
mov eax, dword [eax + 8]
test eax, eax
je 0x100028b0
cvttss2si ebx, dword [eax]
lea eax, [ebx - 0x6f]
cmp eax, 0x142
ja 0x1000288c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
imul eax, esi, 0x64
mov dword [edi + 0xfc], esi
sub ecx, eax
mov eax, 0x66666667
imul ecx
lea eax, [esi + esi*4]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [edi + 0x100], ecx
lea eax, [ecx + eax*2]
lea eax, [eax + eax*4]
add eax, eax
sub ebx, eax
mov dword [edi + 0x104], ebx
jmp 0x100028d1
push ebx
push str.Invalid_mode_value_of_TOOTH:__d
push 0x108
push str.CDetector::InitDetector
push 4
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x1c
jmp 0x100028d1
push str.No_Para_for_TOOTH
push 0x10d
push str.CDetector::InitDetector
push 3
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x18
lea eax, [ebp - 0x14]
mov byte [edi + 2], 1
push eax
push 0
push edi
push 0x10002120
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xa8], eax
test eax, eax
jne 0x10002923
push str.Failed_to_start_device_detect_thread.
push 0x118
push str.CDetector::InitDetector
push 4
push eax
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x18
mov esi, 0x11
jmp 0x10002946
push str.Successfully_initialized_detector.
push 0x11c
push str.CDetector::InitDetector
push 0
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x18
xor esi, esi
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1000297a
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002970
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002a23
push edx
push ecx
call fcn.1015158f
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100029bc
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100029b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002a23
push edx
push ecx
call fcn.1015158f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100029fe
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100029f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002a23
push edx
push ecx
call fcn.1015158f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret 0x18
call fcn.1000a7f0
call fcn.1015862f
int3