Function at 0x10008cb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [0x1002d228]
mov eax, dword [0x1002d22c]
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
sete dh
cmp eax, 0xa
setl dl
or dl, dh
push eax
sub esp, 0x208
mov ebx, esp
test dl, dl
je 0x10008cdc
mov edx, esi
or edx, dword [ebp + 0xc]
je 0x10008d5d
cmp dword [0x1002cd48], 0
je 0x10008d5d
push 0
push str.USBSafeManager
call fcn.10007e22
add esp, 8
mov edx, dword [0x1002d228]
mov eax, dword [0x1002d22c]
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
cmp eax, 0xa
jl 0x10008d5d
test ecx, ecx
je 0x10008d5d
xor esi, esi
mov edi, str.USBSafeManager
push esi
push edi
call fcn.10007e22
add esp, 8
push esi
push edi
call fcn.10007e22
add esp, 8
mov edx, dword [0x1002d228]
mov eax, dword [0x1002d22c]
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
cmp eax, 0xa
jl 0x10008d5d
test ecx, ecx
jne 0x10008d2c
cmp dword [ebp + 0xc], 0
je 0x10008d9d
push 0x52
push str.F5E1DC90_2556_4C9A_A9CA_71F4A60D0F8F
push str.Global_
push 0x100275a8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [0x1002d22c], 0xa
jl 0x10008df7
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10008e1d
jmp 0x10008df7
xor esi, esi
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x10008dbe
cmp eax, 0xa
jl 0x10008e86
test ecx, ecx
jne 0x10008eb3
jmp 0x10008e86
sub esp, 4
push edi
call fcn.10012983
add esp, 8
mov esi, eax
mov edx, dword [0x1002d228]
mov eax, dword [0x1002d22c]
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
cmp eax, 0xa
jl 0x10008da8
test ecx, ecx
je 0x10008da8
sub esp, 4
push edi
call fcn.10012983
add esp, 4
jmp 0x10008dc1
push ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp dword [0x1002d22c], 0xa
jl 0x10008e2a
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10008e2a
push ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
jmp 0x10008df7
test esi, esi
je 0x10008e7a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x1002d22c], 0xa
jl 0x10008e73
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10008e73
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call edi
push esi
call edi
cmp dword [0x1002d22c], 0xa
jl 0x10008e73
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10008e54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
push 0x10015066
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp dword [0x1002d22c], 0xa
jl 0x10008ec7
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10008ec7
xor eax, eax
push eax
push eax
push eax
push 0x10015066
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10008e86
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1002d22c], 0xa
jl 0x10008e7c
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10008e7c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push edi
call ebx
cmp dword [0x1002d22c], 0xa
jl 0x10008e7c
mov eax, dword [0x1002d228]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10008eed
jmp 0x10008e7c