Function at 0x10039761
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xbc
mov eax, 0x101d3382
call fcn.10099872
mov dword [ebp - 0xa8], ecx
xor esi, esi
cmp dword [0x1026d424], esi
jne 0x10039b47
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
mov ecx, 0x1026d870
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
call fcn.1005d8bb
test eax, eax
jne 0x100397b8
cmp dword [ebp + 8], esi
jne 0x10039b47
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xb4]
push eax
call fcn.100228be
lea eax, [ebp - 0xb4]
push eax
call fcn.100226ee
cmp dword [0x10269fe8], 0
pop ecx
mov ebx, str.OutlookCtrlX
mov edi, 0x10269f7c
je 0x10039839
push 0x101ec238
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xb4]
call fcn.100229de
and dword [ebp - 4], 0
push dword [eax]
push dword [ebp - 0x94]
push str.CAddin::OnConnection_1_ReadCacheFile__d___CurrentTime__s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.100cef50
lea ecx, [ebp - 0xb4]
call fcn.100222ce
mov dword [ebp - 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x98], 0
and dword [ebp - 0xa0], 0
mov dword [ebp - 0xac], eax
jmp 0x10039a9c
mov eax, dword [esi]
cmp dword [ebp - 0x8c], eax
jb 0x10039ab5
test eax, eax
je 0x10039aab
push 0
push dword [esi + 0x6c]
lea ecx, [ebp - 0xbc]
call fcn.1002227a
lea eax, [ebp - 0xbc]
push eax
call fcn.100226ee
lea eax, [ebp - 0xa4]
mov dword [esp], 0x101ec238
push eax
lea ecx, [ebp - 0xbc]
call fcn.100229de
mov dword [ebp - 4], 1
cmp dword [0x10269fe8], 0
je 0x100398db
push dword [ebp - 0xa4]
push str.CAddin::OnConnection_2_DataTime__s_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
mov eax, dword [esi + 0x6c]
cmp eax, dword [ebp - 0x9c]
jbe 0x10039904
mov edx, dword [ebp - 0xa8]
mov edx, dword [edx + 0x60]
imul edx, edx, 0x3c
mov ecx, eax
sub ecx, dword [ebp - 0x9c]
cmp ecx, edx
ja 0x1003991e
cmp eax, dword [ebp - 0x9c]
jae 0x10039955
mov ecx, dword [ebp - 0x9c]
sub ecx, eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x60]
imul eax, eax, 0x3c
cmp ecx, eax
jbe 0x10039955
mov eax, dword [esi]
sub dword [ebp - 0x8c], eax
add esi, eax
cmp dword [0x10269fe8], 0
mov dword [ebp - 0x98], 1
je 0x10039a8d
push str.CAddin::OnConnection_3_DeleteMailCache_r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x10
jmp 0x10039a8d
cmp dword [ebp - 0xa0], 0
jne 0x1003996a
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x88]
call fcn.1003937e
mov byte [ebp - 4], 2
push 0x10
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100999a0
push 0x10
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100999a0
push 0x10
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100999a0
push 0x10
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100999a0
push 0x10
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100999a0
push 0x10
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.100999a0
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x6c]
add esp, 0x48
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
add eax, esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.100cf1d0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x70]
lea eax, [ecx + eax*2 + 2]
add eax, esi
push eax
lea ecx, [ebp - 0x18]
call fcn.100cf1d0
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x70]
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*2 + 4]
add eax, esi
push eax
lea ecx, [ebp - 0x14]
call fcn.100cf1d0
cmp dword [0x10269fe8], 0
je 0x10039a46
push dword [ebp - 0x1c]
push str.CAddin::OnConnection_3_AddMailCache_DecryptAttach:_s_r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x14
push 1
push 0x1026d874
lea ecx, [ebp - 0xc8]
call fcn.100dd1f0
lea ecx, [ebp - 0xc8]
call fcn.100dd250
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x1026d894
call fcn.100396e6
mov eax, dword [esi]
sub dword [ebp - 0x8c], eax
add esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.10039096
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.100cef50
cmp dword [ebp - 0x8c], 4
jae 0x10039869
jmp 0x10039ab5
mov ecx, 0x1026d870
call fcn.1005da02
cmp dword [ebp - 0x90], 0
je 0x10039ad1
push dword [ebp - 0x90]
call fcn.1009be13
and dword [ebp - 0x90], 0
pop ecx
cmp dword [ebp - 0x98], 0
je 0x10039b0b
cmp dword [0x10269fe8], 0
je 0x10039af4
push str.CAddin::OnConnection_4_UpdateCacheFile_r_n
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x10
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0xa0]
mov ecx, 0x1026d870
push eax
call fcn.1005d5ee
cmp dword [0x10269fe8], 0
je 0x10039b3d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xac]
mov ecx, 0x1026d894
push eax
call fcn.10039345
push eax
push str.CAddin::OnConnection_Cache_Num__d__Time__d_
push ebx
push 0xffffffffffffffff
push edi
call fcn.10025270
add esp, 0x18
mov dword [0x1026d424], 1
call fcn.100998f5
ret 4