Function at 0x407e90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f480
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str._SEARCH_CDeviceSearchOperation::DoBroadcastSearch__._n
push 0x40000
call fcn.0041abf0
mov esi, dword [ebp + 8]
add esp, 8
lea ecx, [esi + 0x60]
call fcn.0041f810
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0x60]
mov ebx, dword [esi + 0x54]
sub ebx, dword [esi + 0x50]
mov eax, 0x66666667
imul ecx
add esi, 0x50
sar edx, 3
mov eax, edx
sar ebx, 2
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2c], ebx
imul ebx, eax
sar edi, 2
imul ebx, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
cmp ebx, 0x40
jle 0x407f3c
mov ecx, eax
imul ecx, edi
mov eax, 0x40
cdq
idiv ecx
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.00409ac0
imul ebx, dword [ebp - 0x30]
imul ebx, edi
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430e26
mov dword [ebp - 0x14], eax
xor ecx, ecx
add esp, 4
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00430e26
add esp, 4
test eax, eax
je 0x407fad
push 0x4083f0
push 0x4083a0
push ebx
lea esi, [eax + 4]
push 0x10
push esi
mov dword [eax], ebx
call fcn.005253df
mov dword [ebp - 0x18], esi
jmp 0x407fb7
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor eax, eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x2c]
jge 0x4081af
mov dword [ebp - 0x20], ecx
lea ecx, [ecx]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x30]
jge 0x4081a9
mov dword [ebp - 0x1c], ecx
nop
cmp dword [ebp - 0x1c], edi
jge 0x40819f
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x50]
shl ebx, 4
mov edi, dword [ebx + esi]
add ebx, esi
lea eax, [edx + eax*4]
mov eax, dword [eax]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x4080ac
cmp dword [edi + 0xc], 0
jl 0x4080a0
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x4080a0
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x408040
cmp eax, dword [esi]
jne 0x408040
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x408080
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x40805a
call fcn.00401be0
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx + 2]
push edx
add esi, 0x10
push esi
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.0052449f
mov esi, dword [ebp - 0x38]
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x408099
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [ebx], esi
jmp 0x4080ac
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00401d20
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov ecx, dword [edx + ecx*4]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebx + 4]
lea eax, [edx + eax*4]
mov eax, dword [eax]
lea ecx, [ebx + 4]
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x40817d
cmp dword [edi + 0xc], 0
jl 0x408173
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x408173
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x408112
cmp eax, dword [esi]
jne 0x408112
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x408152
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x40812c
call fcn.00401be0
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx + 2]
push edx
add esi, 0x10
push esi
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.0052449f
mov esi, dword [ebp - 0x38]
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40816b
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [ebx + 4], esi
jmp 0x40817d
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.00401d20
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x3c]
mov dword [ebx + 0xc], eax
mov ebx, dword [ebp - 0x28]
mov eax, 1
add dword [ebp - 0x24], eax
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
jmp 0x407fe0
inc dword [ebp - 0x20]
xor ecx, ecx
jmp 0x407fd0
inc eax
jmp 0x407fbe
xor edi, edi
cmp edi, ebx
jge 0x408270
push 0
mov ecx, edi
push 0
shl ecx, 4
add ecx, esi
push ecx
push 0x4094c0
push 0
push 0
call fcn.00525509
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [edx + edi*4], eax
test eax, eax
jne 0x40826a
push edi
push str._SEARCH__error__BroadCast_search_start_failed_in_Threads___d_._n
push 0x80000
call fcn.0041abf0
lea eax, [edi - 1]
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jle 0x408224
push 0xffffffffffffffff
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor ebx, ebx
cmp ebx, dword [ebp + 8]
jge 0x408224
mov eax, dword [edi + ebx*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
jmp 0x408212
test edi, edi
je 0x408231
push edi
call fcn.00430e1b
add esp, 4
test esi, esi
je 0x408320
mov ecx, dword [esi - 4]
push 0x4083f0
lea edi, [esi - 4]
push ecx
push 0x10
push esi
call fcn.00525607
push edi
call fcn.00430e1b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
jmp 0x4081b1
push ebx
push str._SEARCH_BroadCast_search_start_with___d__Threads._n
push 0x80000
call fcn.0041abf0
add esp, 0xc
cmp ebx, edi
jne 0x4082be
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40829a
push 0xffffffffffffffff
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
lea esp, [esp]
cmp edi, ebx
jge 0x4082be
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + edi*4], 0
inc edi
jmp 0x4082a0
push ebx
push str._SEARCH_BroadCast_search_end_with___d__Threads._n
push 0x80000
call fcn.0041abf0
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call fcn.00430e1b
add esp, 4
test esi, esi
je 0x4082fe
mov eax, dword [esi - 4]
push 0x4083f0
lea edi, [esi - 4]
push eax
push 0x10
push esi
call fcn.00525607
push edi
call fcn.00430e1b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408710
push str._SEARCH_CDeviceSearchOperation::DoBroadcastSearch___end._n
push 0x80000
call fcn.0041abf0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4