Function at 0x515550
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72dbc6
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], 0
cmp byte [edi + 0x18], 0
je 0x515593
mov eax, 1
jmp 0x5158d0
mov edx, dword [ebp + 8]
mov byte [edi + 0x18], 1
test edx, edx
je 0x5155cb
mov ecx, edx
mov byte [ebp - 0x74], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5155a7
push dword [ebp - 0x74]
sub ecx, esi
lea eax, [ebp - 0x58]
push ecx
push edx
push eax
call fcn.0049a430
add esp, 0x10
lea eax, [ebp - 0x58]
mov ecx, 5
jmp 0x5155dc
lea eax, [ebp - 0x70]
push eax
call fcn.00515350
add esp, 4
mov ecx, 2
mov dword [ebp - 0x40], 0
xor edx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 1
test cl, 2
je 0x515632
and ecx, 0xfffffffd
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x70]
call fcn.00481300
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 2
test cl, 1
je 0x515643
lea ecx, [ebp - 0x58]
call fcn.00481300
cmp dword [ebp - 0x30], 0
jne 0x515669
push str.CTmNotifyDLL::Init
push str._s___failed_to_call_GetModuleName__
push 0x4c
push 0x74ca68
push 0x45
call fcn.0050ff70
add esp, 0x14
jmp 0x515896
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0x74]
push 0xc
push str.tmnotify.dll
push eax
call fcn.0049a430
add esp, 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
call fcn.0049ab70
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x5156d1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5156c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5158ed
push edx
push ecx
call fcn.0051def4
add esp, 8
mov eax, dword [edi]
test eax, eax
jne 0x5157bb
cmp dword [ebp - 0x2c], 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], eax
cmp ecx, 8
jae 0x515715
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov esi, 7
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x515755
mov esi, ecx
mov eax, bind
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00481610
mov ecx, eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x78]
push ecx
call fcn.0051ff00
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
cmp esi, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x815314
call fcn.00712bc0
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x5157b1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5157a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5158f2
push edx
push ecx
call fcn.0051def4
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x515874
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitDefaultEventSource
push eax
call esi
push str.ReportEventLog
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.OpenEventSource
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.CloseEventSource
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.ReportEventLogEx
push dword [edi]
mov dword [edi + 0x10], eax
call esi
cmp dword [edi + 4], 0
mov dword [edi + 0x14], eax
je 0x51581f
cmp dword [edi + 8], 0
je 0x51581f
cmp dword [edi + 0xc], 0
je 0x51581f
cmp dword [edi + 0x10], 0
je 0x51581f
test eax, eax
je 0x51581f
mov esi, 1
jmp 0x515898
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTmNotifyDLL::Init
push str._s___CTmNotifyDLL::CTmNotifyDLL___GetProcAddress_error___d
push 0x60
push 0x74ca68
push 0x45
call fcn.0050ff70
add esp, 0x18
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
jmp 0x515896
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CTmNotifyDLL::Init
push str._s___CTmNotifyDLL::CTmNotifyDLL___LoadLibrary_tmnotify.dll__error___d
push 0x6d
push 0x74ca68
push 0x45
call fcn.0050ff70
add esp, 0x18
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5158ce
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5158c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5158f7
push edx
push ecx
call fcn.0051def4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret 4
call fcn.0052981f
call fcn.0052981f
call fcn.0052981f
int3