Function at 0x415920
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0142
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x503074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push str.Caller:__s__CallbacData.vt:_0x_4X
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 0
call fcn.00422b80
push eax
call fcn.0047bd80
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.00422b80
mov al, byte [eax + 0x38]
test al, al
je 0x4159b8
push 0x28
call fcn.00475970
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
mov byte [ebp - 4], 1
call fcn.00422b80
push eax
mov ecx, esi
call fcn.00477bf0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 8]
mov ebx, 0x80004005
mov dword [ebp - 0x1c], ebx
cmp dword [eax], 0
je 0x415f3d
mov eax, dword [ebp + 0xc]
cmp word [eax], 1
je 0x415f3d
mov byte [ebp - 4], 2
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
call fcn.00422b80
push dword [ebp - 0x20]
push str.cConnections:__d
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x14
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x20]
jge 0x415b64
test ecx, ecx
js 0x415a38
cmp ecx, dword [edi + 8]
jge 0x415a38
mov eax, dword [edi + 4]
mov edi, dword [eax + ecx*4]
jmp 0x415a3a
xor edi, edi
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x415a47
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 4
call fcn.00422b80
push edi
push str.punkConnection:__p
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x14
test edi, edi
je 0x415b4a
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, dword [edi]
push ecx
push 0x4bb5c0
push edi
call dword [eax]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call fcn.00422b80
push dword [ebp - 0x14]
push ebx
push str.QueryInterface_IID_Dispatch__returns:_0x_08X__pConnection:__p
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x18
test ebx, ebx
js 0x415ab5
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x415ae9
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x4ce6ac
push edi
call dword [eax]
mov ebx, eax
mov dword [ebp - 0x1c], eax
call fcn.00422b80
push dword [ebp - 0x14]
push ebx
push str.QueryInterface__ICaslEventContainerEvents__returns:_0x_08X__pConnection:__p
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
mov eax, dword [ebp - 0x14]
add esp, 0x18
test ebx, ebx
js 0x415af1
test eax, eax
jne 0x415b25
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push 0x4cb294
push edi
call dword [eax]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call fcn.00422b80
push dword [ebp - 0x14]
push ebx
push str.QueryInterface_DIID__ICaslEventContainerEvents__returns:_0x_08X__pConnection:__p
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
mov eax, dword [ebp - 0x14]
add esp, 0x18
test ebx, ebx
js 0x415b3c
test eax, eax
je 0x415b3c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00416110
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x415b4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
test edi, edi
je 0x415b58
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
inc ecx
jmp 0x415a1b
mov edi, dword [ebp - 0x38]
sub edi, dword [ebp - 0x3c]
sar edi, 2
mov dword [ebp - 0x20], edi
call fcn.00422b80
push edi
push str.vConnectionPtrs.size:__d
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x14
test ebx, ebx
js 0x415ba8
test edi, edi
jne 0x415ba8
lea ecx, [ebp - 0x3c]
mov ebx, 0x80004002
call fcn.004163c0
mov dword [ebp - 4], edi
jmp 0x415f42
xor ecx, ecx
mov eax, edi
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.00475bfe
add esp, 4
test eax, eax
je 0x415bf0
push 0x4160d0
push 0x4160c0
push edi
lea ebx, [eax + 4]
mov dword [eax], edi
push 0x10
push ebx
mov dword [ebp - 0x18], ebx
call fcn.00475c0c
jmp 0x415bf5
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor ecx, ecx
mov dword [ebp - 0x28], ebx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00475bfe
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x415e8c
test eax, eax
je 0x415e8c
mov eax, edi
shl eax, 4
push eax
push 0
push ebx
call fcn.0048b3f0
mov ecx, dword [ebp - 0x14]
lea eax, [edi*4]
push eax
push 0
push ecx
call fcn.0048b3f0
add esp, 0x18
lea eax, [ebp - 0x6c]
push 0x402a00
push 0x40d4f0
push 2
push 0x10
push eax
call fcn.00475c0c
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, 8
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x6c]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movq qword [ebp - 0x48], xmm0
xor ebx, ebx
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
nop dword [eax + eax]
cmp ebx, edi
jge 0x415d54
mov edi, ebx
lea eax, [ebp - 0x4c]
shl edi, 4
add edi, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ebx*4]
mov dword [ebp + 8], ecx
cmp dword [edi + 4], ecx
je 0x415d00
test ecx, ecx
je 0x415cf0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [edi + 4], ecx
test eax, eax
je 0x415d00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov word [edi + 8], ax
mov dword [edi + 0xc], 0
call fcn.00422b80
push dword [edi + 4]
push ebx
push str.pConnection__d_:__p
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x18
push 0
push 0
push edi
push 0x41d820
push 0
push 0
call fcn.0048f4d9
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov edi, dword [ebp - 0x20]
mov dword [ecx + ebx*4], eax
inc ebx
jmp 0x415cc0
push 0x4e20
push 1
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
call fcn.00422b80
push edi
push str.dwWaitResult:_0x_08lX
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push eax
call fcn.0047bd80
add esp, 0x14
cmp edi, 0x102
jne 0x415e0b
mov ebx, dword [ebp - 0x20]
xor edi, edi
cmp edi, ebx
jge 0x415e2e
mov ecx, dword [ebp - 0x18]
mov eax, edi
add eax, eax
cmp dword [ecx + eax*8 + 0xc], 1
jne 0x415e08
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x415de8
call fcn.00422b80
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
push str.Failed_to_terminate_callback_thread__0x_08lX_._Last_error:__d
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 4
push dword [ebp + 0xc]
call fcn.0047bd80
add esp, 0x18
inc edi
jmp 0x415d91
call fcn.00422b80
mov ecx, dword [ebp - 0x14]
push dword [ecx + edi*4]
push str.Terminated_callback_thread__0x_08lX__due_to_timeout_waiting_for_it_to_stop.
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 3
push eax
call fcn.0047bd80
add esp, 0x14
inc edi
jmp 0x415d91
call fcn.00422b80
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLastError:__d
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 2
push edi
call fcn.0047bd80
add esp, 0x14
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x6c]
push eax
call ebx
push dword [ebp - 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x5c]
push eax
call ebx
xor ebx, ebx
cmp dword [ebp - 0x44], ebx
jbe 0x415e67
xor edi, edi
mov eax, dword [ebp - 0x4c]
add eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebx
add edi, 0x10
cmp ebx, dword [ebp - 0x44]
jb 0x415e52
push 0x402a00
push 2
push 0x10
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x4c], 0
push eax
mov byte [ebp - 4], 3
call fcn.00475c75
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
jmp 0x415e93
mov dword [ebp - 0x1c], 0x8007000e
xor edi, edi
cmp edi, dword [ebp - 0x20]
jge 0x415eee
mov eax, dword [eax + edi*4]
test eax, eax
je 0x415eb7
cmp eax, 0xffffffff
je 0x415eb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + edi*4], 0
mov eax, edi
mov dword [ebp - 4], 3
shl eax, 4
add ebx, eax
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x415edf
mov dword [ebx + 4], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc edi
mov word [ebx + 8], ax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
jmp 0x415e95
lea ecx, [ebp - 0x2c]
call fcn.0040aae0
lea ecx, [ebp - 0x28]
call fcn.004172b0
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
call fcn.004163c0
mov dword [ebp - 4], 0
jmp 0x415f42
mov ebx, 0x80004003
push ebx
push str.hr:_0x_08lX
push str.CProxy_ICaslEventContainerEvents_class_CCaslEventContainer_::Fire_Callback
push 1
call fcn.00422b80
push eax
call fcn.0047bd80
add esp, 0x14
test esi, esi
je 0x415f73
mov ecx, esi
call fcn.00478c00
push 0x28
push esi
call fcn.00475d73
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8