Function at 0x10018850
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
push str._OfficeTeamAddin__OnConnection_Beg
call ebx
mov esi, 0xf
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], esi
mov byte [ebp - 0x26c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
push eax
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x10018cb9
xor eax, eax
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100188d7
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.10006f50
mov esi, dword [ebp - 0x240]
lea edi, [ebp - 0x254]
mov ebx, dword [ebp - 0x244]
xor eax, eax
cmp esi, 8
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
cmovae edi, dword [ebp - 0x254]
mov word [ebp - 0x23c], ax
test ebx, ebx
je 0x10018ab0
push 0x100
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.10037070
mov edx, 0x100
add esp, 0xc
mov ecx, 0x1005c4a0
mov dword [ebp - 0x378], edx
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x100189b9
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x36c], 1
cmp ecx, 0x1005c4a2
jne 0x10018960
lea eax, [ebx - 1]
or edx, 0xffffffff
cmp eax, edx
mov ecx, edx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x378]
jae 0x100189a6
cmp byte [ebp + eax - 0x36c], 0
jne 0x100189b3
cmp ecx, edi
je 0x10018ab0
sub ecx, 2
jmp 0x10018990
sub ecx, edi
sar ecx, 1
jmp 0x10018a08
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 1
mov eax, 0x1005c4a0
nop dword [eax]
cmp word [eax], si
je 0x100189fb
add eax, 2
sub edx, 1
jne 0x100189e0
cmp ecx, edi
je 0x100189f6
sub ecx, 2
jmp 0x100189d0
or ecx, 0xffffffff
jmp 0x100189ff
sub ecx, edi
sar ecx, 1
mov esi, dword [ebp - 0x240]
or edx, 0xffffffff
cmp ecx, 0xffffffff
je 0x10018ab0
inc ecx
mov dword [ebp - 0x214], 0
xor eax, eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
cmp ebx, ecx
jb 0x10018d59
sub ebx, ecx
lea eax, [ebp - 0x254]
cmp ebx, 0xffffffff
cmovb edx, ebx
cmp esi, 8
push edx
cmovae eax, dword [ebp - 0x254]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x224]
call fcn.10006f50
lea ecx, [ebp - 0x23c]
call fcn.10003fd0
movups xmm0, xmmword [ebp - 0x224]
xor eax, eax
lea ecx, [ebp - 0x224]
mov word [ebp - 0x224], ax
movups xmmword [ebp - 0x23c], xmm0
movq xmm0, qword [ebp - 0x214]
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
call fcn.10003fd0
xor eax, eax
lea esi, [ebp - 0x23c]
xor ebx, ebx
mov dword [ebp - 0x374], eax
xor edi, edi
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x210], ebx
jb 0x10018af4
mov esi, dword [ebp - 0x23c]
test esi, esi
jne 0x10018af4
xor edx, edx
jmp 0x10018b8c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x370], eax
test eax, eax
jne 0x10018b17
xor edx, edx
jmp 0x10018b8c
push eax
call fcn.10034668
add esp, 4
mov dword [ebp - 0x37c], eax
push 0
push 0
push dword [ebp - 0x370]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10018b54
push dword [ebp - 0x37c]
call fcn.10034671
add esp, 4
xor edx, edx
jmp 0x10018b8c
lea eax, [ebp - 0x37c]
push eax
push 0
lea ecx, [ebp - 0x218]
call fcn.10001310
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov edx, dword [ebp - 0x37c]
mov edi, dword [ebp - 0x218]
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x374], eax
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018b91
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x26c]
call fcn.10006e60
cmp dword [ebp - 0x22c], 0
jbe 0x10018c35
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.100193b0
lea eax, [ebp - 0x224]
push eax
call fcn.10018370
add esp, 0x1c
lea ecx, [ebp - 0x224]
call fcn.10003fd0
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.100193b0
lea eax, [ebp - 0x224]
push eax
call fcn.10018370
add esp, 0x1c
lea ecx, [ebp - 0x224]
call fcn.10003fd0
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.100193b0
lea eax, [ebp - 0x224]
push eax
call fcn.10018370
add esp, 0x1c
lea ecx, [ebp - 0x224]
call fcn.10003fd0
mov eax, dword [ebp - 0x374]
xor esi, esi
sub eax, edi
sar eax, 2
mov dword [ebp - 0x374], eax
test eax, eax
je 0x10018c66
mov ebx, eax
nop
push dword [edi + esi*4]
call fcn.10034671
inc esi
add esp, 4
cmp esi, ebx
jb 0x10018c50
mov ebx, dword [ebp - 0x378]
test edi, edi
je 0x10018c97
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x10018c8d
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018d5e
push ebx
push edi
call fcn.1003465a
add esp, 8
lea ecx, [ebp - 0x23c]
call fcn.10003fd0
lea ecx, [ebp - 0x254]
call fcn.10003fd0
mov esi, dword [ebp - 0x258]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x10078024], 0
jne 0x10018d04
push 0x50
call fcn.1003462a
add esp, 4
test eax, eax
je 0x10018cdb
mov ecx, eax
call fcn.10003740
mov esi, eax
jmp 0x10018cdd
xor esi, esi
push 1
mov ecx, esi
call fcn.10004e90
sub esp, 0x18
lea eax, [ebp - 0x26c]
mov ecx, esp
push eax
call fcn.10003620
mov ecx, esi
call fcn.100080f0
mov esi, dword [ebp - 0x258]
call fcn.100049b0
test eax, eax
je 0x10018d14
push str._OfficeTeamAddin__OnConnection_End
call ebx
cmp esi, 0x10
jb 0x10018d44
mov ecx, dword [ebp - 0x26c]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x10018d3a
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018d63
push esi
push ecx
call fcn.1003465a
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10034676
mov esp, ebp
pop ebp
ret 0x14
call fcn.10008e70
call fcn.10039dac
call fcn.10039dac
int3